-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Conversation
@@ -3,7 +3,7 @@ module.exports = grunt => { | |||
grunt.initConfig({ | |||
eslint: { | |||
options: { | |||
configFile: 'conf/eslint.json', | |||
overrideConfigFile: 'conf/eslint.json', |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 }); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
The link to ESLint option in the readme needs to be updated. |
The link was updated. |
sindresorhus/grunt-eslint#171 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
sindresorhus/grunt-eslint#171 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
sindresorhus/grunt-eslint#171 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
No description provided.