Skip to content

Commit 27bf5fb

Browse files
authored
Fix flags docs (#796)
1 parent 5c49e36 commit 27bf5fb

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

cli.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ const cli = meow(
2121
--fix Automagically fix issues
2222
--reporter Reporter to use
2323
--space Use space indent instead of tabs [Default: 2]
24+
--config Path to a XO configuration file
2425
--semicolon Use semicolons [Default: true]
25-
--prettier Conform to Prettier code style [Default: false]
2626
--react Include React specific parsing and xo-react linting rules [Default: false]
2727
--prettier Format with prettier or turn off prettier conflicted rules when set to 'compat' [Default: false]
2828
--print-config Print the effective ESLint config for the given file
29+
--version Print XO version
2930
--open Open files with issues in your editor
31+
--quiet Show only errors and no warnings
3032
--stdin Validate/fix code from stdin
3133
--stdin-filename Specify a filename for the --stdin option
3234
--ignore Ignore pattern globs, can be set multiple times

readme.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,19 @@ $ xo --help
5959
Options
6060
--fix Automagically fix issues
6161
--reporter Reporter to use
62-
--ignore Ignore pattern globs, can be set multiple times
6362
--space Use space indent instead of tabs [Default: 2]
64-
--no-semicolon Prevent use of semicolons
65-
--prettier Conform to Prettier code style or turn off conflicting rules
66-
--react Include React plugins and xo-react linting rules [Default: false]
63+
--config Path to a XO configuration file
64+
--semicolon Use semicolons [Default: true]
65+
--react Include React specific parsing and xo-react linting rules [Default: false]
66+
--prettier Format with prettier or turn off prettier conflicted rules when set to 'compat' [Default: false]
67+
--print-config Print the effective ESLint config for the given file
68+
--version Print XO version
6769
--open Open files with issues in your editor
6870
--quiet Show only errors and no warnings
69-
--cwd=<dir> Working directory for files
7071
--stdin Validate/fix code from stdin
7172
--stdin-filename Specify a filename for the --stdin option
72-
--print-config Print the ESLint configuration for the given file
73+
--ignore Ignore pattern globs, can be set multiple times
74+
--cwd=<dir> Working directory for files [Default: process.cwd()]
7375
7476
Examples
7577
$ xo

0 commit comments

Comments
 (0)