0.6.2 • Published 7 years ago
uslint v0.6.2
uslint
Zero-config eslint, jsonlint, stylelint cli. All in one.
Require Node >= 8.5.0
Integrate
Install
npm i uslint -D
# or
npm i uslint -gUsage
Usage: uslint [files] [options]
-h, --help displays help
-f, --fix Automatically fix problems
--errorOnly Only show error, filter out warnings
--jsonlint String lint json files
--stylelint String lint style files (css, less)
--styleVerbose stylelint output formatter: verbose
Version: 0.5.0eg.
uslint src/ client/Zero-config!
Options
-f, --fix
Automatically fix problems.
eslint --fix
stylelint --fix
--errorOnly
Only show error, filter out warnings. The same as eslint --quiet.
--jsonlint String
lint json files.
# use eslint to lint folder src
# use jsonlint to lint 'jsons/**/*.json'
uslint src/ --jsonlint 'jsons/**/*.json'--stylelint String
lint style files. (less)
# use eslint to lint folder src
# use jsonlint to lint 'jsons/**/*.json'
# use stylelint to lint 'client/**/*.less'
uslint src/ --jsonlint 'jsons/**/*.json' --stylelint 'client/**/*.less'--styleVerbose
Stylelint output format verbose.
Plugins and parsers
Eslint
- babel-eslint
- eslint-config-airbnb
- eslint-plugin-react
- eslint-plugin-babel
- eslint-plugin-import
- eslint-plugin-jsx-a11y
Stylelint
LICENSE
MIT © PengJiyuan