mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-31 13:41:58 +00:00
30 lines
518 B
Plaintext
30 lines
518 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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 {{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`
|