README
lint-files
Convenience wrapper for ESLint’s CLIEngine.prototype.executeOnFiles()
Instead of
const { CLIEngine } = require('eslint')
const cli = new CLIEngine({ some: 'options' })
cli.executeOnFiles(['some', 'files'])
Do
const lintFiles = require('lint-files')
lintFiles({ some: 'options' }, ['some', 'files'])
Features
- one line less
- no
new
- tested better than patience
API
lintFiles(options, files)
options
:
will be passed to theCLIEngine
constructor (ESLint docs)files
:
will be passed toexecuteOnFiles
(ESLint docs)
Returns what executeOnFiles
returns.