1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-31 18:55:33 +02:00
tldr/pages/common/xo.md
2019-05-12 15:34:53 +01:00

23 lines
359 B
Markdown

# xo
> A pluggable, zero-configuration linting utility for JavaScript.
- 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`