Skip to content

PengJiyuan/uslint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

👍Zero-config eslint, jsonlint, stylelint cli. All in one.

Resources

License

Stars

Watchers

Forks

Packages

No packages published