Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

29
tldr/xo Normal file
View 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`