Skip to content

Fix ESLint Test #1890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from
Open

Fix ESLint Test #1890

wants to merge 3 commits into from

Conversation

bdkopen
Copy link
Contributor

@bdkopen bdkopen commented May 1, 2025

  • Fixes an issue in the test script where eslint wasn't running over any files.
  • Whitelists browser and jquery as environments so their variables are seen as defined.
  • Resolves all the ESLint errors.

Copy link

netlify bot commented May 1, 2025

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit 6aab502
🔍 Latest deploy log https://app.netlify.com/sites/expressjscom-preview/deploys/6813f8bc821eee000821602f
😎 Deploy Preview https://deploy-preview-1890--expressjscom-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"scripts": {
"test": "eslint --ignore-path .gitignore --ignore-pattern _includes/readmes/ \"**/*.md\""
"test": "eslint . --ignore-path .gitignore --ignore-pattern _includes/readmes/ \"**/*.md\""
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.md files are currently part of the --ignore-pattern. Should this exclusion be removed from the test script?

When the ignore-pattern is removed there are another 261 errors that could be fixed. Right now the test doesn't enforce the .md lint rules.

@@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"scripts": {
"test": "eslint --ignore-path .gitignore --ignore-pattern _includes/readmes/ \"**/*.md\""
"test": "eslint . --ignore-path .gitignore --ignore-pattern _includes/readmes/ \"**/*.md\""
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without the ., ESLint doesn't actually run on any files.

@bdkopen bdkopen marked this pull request as ready for review May 1, 2025 22:44
@bdkopen bdkopen requested review from a team as code owners May 1, 2025 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant