https://github.com/pengjiyuan/uslint
:thumbsup:Zero-config eslint, jsonlint, stylelint cli. All in one.
https://github.com/pengjiyuan/uslint
Last synced: 4 months ago
JSON representation
:thumbsup:Zero-config eslint, jsonlint, stylelint cli. All in one.
- Host: GitHub
- URL: https://github.com/pengjiyuan/uslint
- Owner: PengJiyuan
- License: mit
- Created: 2018-06-11T10:48:47.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-02T02:08:20.000Z (almost 7 years ago)
- Last Synced: 2024-09-16T18:10:03.957Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 49.8 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# uslint
Zero-config eslint, jsonlint, stylelint cli. All in one.**Require Node >= 8.5.0**
## Integrate
* [Eslint](https://github.com/eslint/eslint)
* [Jsonlint](https://github.com/zaach/jsonlint)
* [Stylelint](https://github.com/stylelint/stylelint)## Install
```bash
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: verboseVersion: 0.5.0
```eg.
```bash
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.
```bash
# use eslint to lint folder src
# use jsonlint to lint 'jsons/**/*.json'
uslint src/ --jsonlint 'jsons/**/*.json'
```#### --stylelint [String]
lint style files. (less)
```bash
# 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](https://github.com/babel/babel-eslint)
* [eslint-config-airbnb](https://github.com/airbnb/javascript)
* [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react)
* [eslint-plugin-babel](https://github.com/babel/eslint-plugin-babel)
* [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import)
* [eslint-plugin-jsx-a11y](https://github.com/evcohen/eslint-plugin-jsx-a11y)#### Stylelint
* [stylelint-config-standard](https://github.com/stylelint/stylelint-config-standard)
## LICENSE
[MIT](./LICENSE) © PengJiyuan