ESLint Explainer
ESLint explainer is a tool to quickly display the current project eslint rules and their explanation
Installation and Usage
Install the package globally using npm:
$ npm install -g eslint-explainer
After that, you can run ESLint on any project ( eslint and all the config need to be installed locally )
Simply run, in the project root folder :
$ eslint-explainer
Example output (for the webpack project):
{
"strict": 0,
"camelcase": 0,
"curly": 0,
"indent": [
2,
"tab",
{
"SwitchCase": 1
}
],
"eol-last": 1,
"no-shadow": 0,
"no-redeclare": 2,
"no-extra-bind": 1,
"no-empty": 0,
"no-process-exit": 1,
"no-underscore-dangle": 0,
"no-use-before-define": 0,
"no-undef": 2,
"no-unused-vars": 0,
"consistent-return": 0,
"no-inner-declarations": 1,
"no-loop-func": 1,
"space-before-function-paren": [
2,
"never"
]
}
You can additionally specify a specific file (in case of multiple, nested, eslintrc config file in the same project)
$ eslint-explainer <filename>