uslint

2019-11-22

uslint是什么

什么是uslint,Unitedstack eslint rules wrapper.

uslint使用教程帮助文档

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


上一篇:javascript-深入理解原型链
下一篇:ufec
相关文章
暂无相关文章

首次访问,人机识别验证

扫描下方二维码回复 1024 获取验证码,验证完毕后 永久 无须验证

操作步骤:[打开微信]->[扫描上侧二维码]->[关注 FedJavaScript 的微信] 输入 1024 获取验证码

验证码有误,请重新输入