In a .eslintrc
file, we can use:
"extends": "eslint:recommended"
to extend the recommended rules provided by eslint, and in the rule list, many of them are marked as "recommended".
My question what is the exact rule definitions for them? I searched in the repo of eslint, but not found it.
ESLint comes with a large number of built-in rules and you can add more rules through plugins. You can modify which rules your project uses either using configuration comments or configuration files. To change a rule setting, you must set the rule ID equal to one of these values: "off" or 0 - turn the rule off.
Keep in mind that we have over 200 rules, and that is daunting both for end users and the ESLint team (who has to maintain them).
Go to settings --> packages --> linter-eslint settings. On that menu, look for the . eslintrc Path option.
The ESLint configuration is in the ./node_modules/@spm/eslint-config/index. js file.
Freewind's answer is pointing to a specific commit – now outdated.
The current eslint:recommended
rules can be found at github.com/eslint/eslint/blob/master/conf/eslint-recommended.js.
Run this terminal command from the project root to output a complete list of definitions being applied in your setup.
./node_modules/.bin/eslint --print-config *.* > "./.eslintrc.js_fullsettings.js"
If you only have extends: ['eslint:recommended']
in the .eslint
file you'll get what you're looking for.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With