mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-05 02:15:37 +02:00
xo: add page (#2552)
This commit is contained in:
parent
f68682edae
commit
b4aab776fd
1 changed files with 23 additions and 0 deletions
23
pages/common/xo.md
Normal file
23
pages/common/xo.md
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# 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`
|
Loading…
Add table
Reference in a new issue