eslint-scanner
eslint-scanner is a code specification check tool.ratherblue's eslint-html-reporter is used for create the result html.
- Based on the eslint code standard specification
- Display the results in HTML
- You can customize eslint rules
Installation
$ npm -g install eslint-scanner
Usage
Simple
default eslint path: yourpath/.eslintrc(if it's not exsit, use airbnb).
default result file path: ./report.html
$ yourpath: escheck -f ./src
Then you can see the result file(report.html) under yourpath.
Set output path
$ yourpath: escheck -f ./src -o ./report.html
Set eslint-config
create .eslintrc in xxx/ and then:
$ yourpath: escheck -f ./src -c ./xxx/.eslintrc
Help
$: escheck --help Usage: escheck [options] <src...> Options: -h, --help output usage information -V, --version output the version number -f, --path <path> base directory