mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 23:00:51 +00:00
Update cheatsheets
This commit is contained in:
29
xo
Normal file
29
xo
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
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`
|
||||
Reference in New Issue
Block a user