1.0.0 • Published 9 years ago
lint-files v1.0.0
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 theCLIEngineconstructor (ESLint docs)files:
will be passed toexecuteOnFiles(ESLint docs)
Returns what executeOnFiles returns.
1.0.0
9 years ago