1.0.1 • Published 8 years ago
eslint-failing-rules v1.0.1
eslint-failing-rules
Gets failing ESLint rules.
Why?
You may like to use that somehow, somewhere.
How?
const eslint = require('eslint')
const getFailing = require('eslint-failing-rules')
getFailing(eslint, ['**/*.js']) // ['semi', 'no-unused-vars']
API
getFailing(eslint, files)
eslint
Whateslint@^3
exportsfiles
Input for ESLint’sexecuteOnFiles()
. E.g.['**/*.js', '**/*.jsx']
Returns an array set of failed ESLint rules.
The purpose is to find the same failing rules that would be encountered when running ESLint the way it is usually run in a context.
For this purpose, CLIEngine
is called without any options,
so that any configuration files
that are usually be used, would be used.