lint-text
Convenience wrapper for ESLint’s CLIEngine.prototype.executeOnText()
Instead of
const CLIEngine = const cli = some: 'options' cli
Do
const lintText =
Features
- one line less
- no
new
- tested better than patience
API
lintText(options, text)
options
:
will be passed to theCLIEngine
constructor (ESLint docs)text
:
will be passed as first argument toexecuteOnText
(ESLint docs)
Returns what executeOnText
returns.