all-eslint-rules
Get all available ESLint rules
const allEslintRules = ; ;//=> ['accessor-pairs', 'array-bracket-newline', 'array-bracket-spacing', ...]
Installation
npm install all-eslint-rules
API
const allEslintRules = ;
allEslintRules([options])
options: Object | CLIEngine
Return: string[]
It returns an Array
of available ESLint rule names – the built-in ones and the ones defined by external plugins. Deprecated rules are excluded.
const rules = ; // Both indent-legacy and no-spaced-func are deprecated.rules; //=> falserules; //=> false
The optional parameter accepts either a plain Object
to set CLIEngine
options or an already instantiated CLIEngine
, and affects the result.
// When eslint-plugin-promise https://www.npmjs.com/package/eslint-plugin-promise is installed ; //=> false ; //=> true
License
ISC License © 2018 - 2019 Watanabe Shinnosuke