2025-03-14 21:59:59 -06:00
|
|
|
# xo
|
|
|
|
|
|
|
|
|
|
> A pluggable, zero-configuration linting utility for JavaScript.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://github.com/xojs/xo#usage>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Lint files in the "src" directory:
|
|
|
|
|
|
|
|
|
|
`xo`
|
|
|
|
|
|
|
|
|
|
- Lint a given set of files:
|
|
|
|
|
|
|
|
|
|
`xo {{path/to/file1.js path/to/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`
|