2018-11-06 08:57:21 +00:00
|
|
|
# xo
|
|
|
|
|
2019-05-12 15:34:53 +01:00
|
|
|
> A pluggable, zero-configuration linting utility for JavaScript.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://github.com/xojs/xo>.
|
2018-11-06 08:57:21 +00:00
|
|
|
|
2019-05-12 15:34:53 +01:00
|
|
|
- Lint files in the "src" directory:
|
2018-11-06 08:57:21 +00:00
|
|
|
|
|
|
|
`xo`
|
|
|
|
|
2019-05-12 15:34:53 +01:00
|
|
|
- Lint a given set of files:
|
2018-11-06 08:57:21 +00:00
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`xo {{path/to/file1.js path/to/file2.js ...}}`
|
2018-11-06 08:57:21 +00:00
|
|
|
|
2019-05-12 15:34:53 +01:00
|
|
|
- Automatically fix any lint issues found:
|
2018-11-06 08:57:21 +00:00
|
|
|
|
|
|
|
`xo --fix`
|
|
|
|
|
2019-05-12 15:34:53 +01:00
|
|
|
- Lint using spaces as indentation instead of tabs:
|
2018-11-06 08:57:21 +00:00
|
|
|
|
|
|
|
`xo --space`
|
|
|
|
|
2019-05-12 15:34:53 +01:00
|
|
|
- Lint using the "prettier" code style:
|
2018-11-06 08:57:21 +00:00
|
|
|
|
|
|
|
`xo --prettier`
|