mirror of https://github.com/CrimsonTome/tldr.git
25 lines
409 B
Markdown
25 lines
409 B
Markdown
# xo
|
|
|
|
> A pluggable, zero-configuration linting utility for JavaScript.
|
|
> More information: <https://github.com/xojs/xo>.
|
|
|
|
- Lint files in the "src" directory:
|
|
|
|
`xo`
|
|
|
|
- Lint a given set of files:
|
|
|
|
`xo {{file1}}.js {{file2}}.js`
|
|
|
|
- Automatically fix any lint issues found:
|
|
|
|
`xo --fix`
|
|
|
|
- Lint using spaces as indentation instead of tabs:
|
|
|
|
`xo --space`
|
|
|
|
- Lint using the "prettier" code style:
|
|
|
|
`xo --prettier`
|