npm install --save-dev start-eslint
# or
yarn add --dev start-eslint
import Start from 'start';
import reporter from 'start-pretty-reporter';
import files from 'start-files';
import eslint from 'start-eslint';
const start = Start(reporter());
export const lint = () => start(
files([ 'lib/**/*.js', 'test/**/*.js' ]),
// `.eslintignore` is respected
eslint()
);
This task relies on array of files and provides the same, see documentation for details.
eslint(options, formatter)
options
– ESLint optionsformatter
– ESLint formatter