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
$ npm -g install eslint-scanner
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.
$ yourpath: escheck -f ./src -o ./report.html
create .eslintrc in xxx/ and then:
$ yourpath: escheck -f ./src -c ./xxx/.eslintrc
$: escheck --help
Usage: escheck [options] <src...>
Options:
-h, --help output usage information
-V, --version output the version number
-f, --path <path> base directory for resolving paths
-c, --config <path> .eslintrc path
-o, --output <path> path for report html