Skip to content

Commit 011cd8e

Browse files
committed
Reflect the implemented cli options in the readme and help commands
1 parent b2b8a9d commit 011cd8e

2 files changed

Lines changed: 17 additions & 14 deletions

File tree

cli.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ 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
3031
--quiet Show only errors and no warnings
3132
--stdin Validate/fix code from stdin

readme.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,21 @@ $ xo --help
5757
$ xo [<file|glob> ...]
5858
5959
Options
60-
--fix Automagically fix issues
61-
--reporter Reporter to use
62-
--ignore Ignore pattern globs, can be set multiple times
63-
--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]
67-
--open Open files with issues in your editor
68-
--quiet Show only errors and no warnings
69-
--cwd=<dir> Working directory for files
70-
--stdin Validate/fix code from stdin
71-
--stdin-filename Specify a filename for the --stdin option
72-
--print-config Print the ESLint configuration for the given file
60+
--fix Automagically fix issues
61+
--reporter Reporter to use
62+
--space Use space indent instead of tabs [Default: 2]
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
69+
--open Open files with issues in your editor
70+
--quiet Show only errors and no warnings
71+
--stdin Validate/fix code from stdin
72+
--stdin-filename Specify a filename for the --stdin option
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)