Skip to content
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

Upgrade to ESLint 8 and require Node.js 12 #171

Merged
merged 1 commit into from Oct 15, 2021

Conversation

ex1st
Copy link
Contributor

@ex1st ex1st commented Oct 14, 2021

No description provided.

@ex1st ex1st changed the title Upgrade to ESLint 8 and require Node.js 14 Upgrade to ESLint 8 and require Node.js 12 Oct 14, 2021
@@ -3,7 +3,7 @@ module.exports = grunt => {
grunt.initConfig({
eslint: {
options: {
configFile: 'conf/eslint.json',
overrideConfigFile: 'conf/eslint.json',
Copy link
Owner

Choose a reason for hiding this comment

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

Why are you changing the option name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hello @sindresorhus because 'configFile' option is deprecated in v8. If you run the test with that option eslint prints the error message:

Warning: Invalid Options:
- Unknown options: configFile
- 'configFile' has been removed. Please use the 'overrideConfigFile' option instead. Use --force to continue.

tasks/eslint.js Outdated

const engine = new eslint.CLIEngine(options);
const engine = new ESLint({ overrideConfigFile, rulePaths });
Copy link
Owner

Choose a reason for hiding this comment

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

We document that the user can pass any option to ESLint, not just these.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, make sense. But the new version of eslint validates options and throws an error if an option is unknown. I changed to reverted logic for destructing options.

@sindresorhus
Copy link
Owner

The link to ESLint option in the readme needs to be updated.

@ex1st
Copy link
Contributor Author

ex1st commented Oct 14, 2021

The link was updated.

@sindresorhus sindresorhus merged commit dbaf9d5 into sindresorhus:main Oct 15, 2021
return42 added a commit to searxng/searxng that referenced this pull request Oct 22, 2021
dalf pushed a commit to dalf/searxng that referenced this pull request Nov 17, 2021
dalf pushed a commit to searxng/searxng that referenced this pull request Nov 17, 2021
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.

None yet

2 participants