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