You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enforces the recommended practices for eslint rules and rule tests using eslint-plugin-eslint-plugin which is commonly used internally by eslint plugins.
Exports rules using export default instead of module.exports =. Why?
This is needed so that eslint-plugin-eslint-plugin will recognize the rules since export default is expected in files that use sourceType: module.
For module files (which import statements instead of require), we might as well use export statements instead of module.exports too to adopt fully modern syntax.
There’s no need to make eslintrc valid json; trailing commas and comments are a good feature.
I agree those are good features. It's just a bit inconvenient to use those in JSON files since some IDEs will show syntax warnings.
It's also confusing that the .eslintrc in this project has a mixture of single quotes, double quotes, and no quotes surrounding property names, so it's very difficult to tell what style to follow.
That's why I normally use the JS format of the config file .eslintrc.js so I can just let prettier handle this for me.
Anyways, I reverted the changes to the original lines in .eslintrc.
Merging #818 (94a4684) into master (f44fc05) will not change coverage.
The diff coverage is n/a.
❗ Current head 94a4684 differs from pull request most recent head f1414cf. Consider uploading reports for the commit f1414cf to get more accurate results
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
recommendedpractices for eslint rules and rule tests using eslint-plugin-eslint-plugin which is commonly used internally by eslint plugins.Exports rules usingexport defaultinstead ofmodule.exports =. Why?This is needed so thateslint-plugin-eslint-pluginwill recognize the rules sinceexport defaultis expected in files that usesourceType: module.For module files (whichimportstatements instead ofrequire), we might as well useexportstatements instead ofmodule.exportstoo to adopt fully modern syntax.