uslint

Unitedstack eslint rules wrapper.

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 -g

Usage

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.0

eg.

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

Stylelint

LICENSE

MIT© PengJiyuan

HomePage

https://github.com/PengJiyuan/uslint#readme

Repository

https+https://github.com/PengJiyuan/uslint


上一篇:relix
下一篇:ufec

相关推荐

暂无相关文章

官方社区

扫码加入 JavaScript 社区