mirror of https://github.com/CrimsonTome/tldr.git
24 lines
322 B
Markdown
24 lines
322 B
Markdown
|
# xo
|
||
|
|
||
|
> A pluggable zero configuration linting utility for JavaScript.
|
||
|
|
||
|
- Lint files in "src":
|
||
|
|
||
|
`xo`
|
||
|
|
||
|
- Lint on a gives set of files:
|
||
|
|
||
|
`xo {{filename}}.js {{filename1}}.js`
|
||
|
|
||
|
- Fix lint issues:
|
||
|
|
||
|
`xo --fix`
|
||
|
|
||
|
- Lint with spaces as indentation instead of tabs:
|
||
|
|
||
|
`xo --space`
|
||
|
|
||
|
- Lint with prettier code style:
|
||
|
|
||
|
`xo --prettier`
|