You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/docs/guide/usage/linter/generated-cli.md
+35-35Lines changed: 35 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,9 @@ search: false
17
17
18
18
If not provided, Oxlint will look for `.oxlintrc.json` in the current working directory.
19
19
20
-
-**`--tsconfig`**=_`<./tsconfig.json>`_ —
20
+
-**`--tsconfig`**=_`<./tsconfig.json>`_ —
21
21
TypeScript `tsconfig.json` path for reading path alias and project references for import plugin. If not provided, will look for `tsconfig.json` in the current working directory.
22
-
-**`--init`**—
22
+
-**`--init`**—
23
23
Initialize oxlint configuration with default values
24
24
25
25
## Allowing / Denying Multiple Lints
@@ -49,66 +49,66 @@ Arguments:
49
49
50
50
## Enable/Disable Plugins
51
51
52
-
-**`--disable-unicorn-plugin`**—
52
+
-**`--disable-unicorn-plugin`**—
53
53
Disable unicorn plugin, which is turned on by default
54
-
-**`--disable-oxc-plugin`**—
54
+
-**`--disable-oxc-plugin`**—
55
55
Disable oxc unique rules, which is turned on by default
56
-
-**`--disable-typescript-plugin`**—
56
+
-**`--disable-typescript-plugin`**—
57
57
Disable TypeScript plugin, which is turned on by default
58
-
-**`--import-plugin`**—
58
+
-**`--import-plugin`**—
59
59
Enable import plugin and detect ESM problems. It is recommended to use alongside the `--tsconfig` option.
60
-
-**`--react-plugin`**—
60
+
-**`--react-plugin`**—
61
61
Enable react plugin, which is turned off by default
62
-
-**`--jsdoc-plugin`**—
62
+
-**`--jsdoc-plugin`**—
63
63
Enable jsdoc plugin and detect JSDoc problems
64
-
-**`--jest-plugin`**—
64
+
-**`--jest-plugin`**—
65
65
Enable the Jest plugin and detect test problems
66
-
-**`--vitest-plugin`**—
66
+
-**`--vitest-plugin`**—
67
67
Enable the Vitest plugin and detect test problems
68
-
-**`--jsx-a11y-plugin`**—
68
+
-**`--jsx-a11y-plugin`**—
69
69
Enable the JSX-a11y plugin and detect accessibility problems
70
-
-**`--nextjs-plugin`**—
70
+
-**`--nextjs-plugin`**—
71
71
Enable the Next.js plugin and detect Next.js problems
72
-
-**`--react-perf-plugin`**—
72
+
-**`--react-perf-plugin`**—
73
73
Enable the React performance plugin and detect rendering performance problems
74
-
-**`--promise-plugin`**—
74
+
-**`--promise-plugin`**—
75
75
Enable the promise plugin and detect promise usage problems
76
-
-**`--node-plugin`**—
76
+
-**`--node-plugin`**—
77
77
Enable the node plugin and detect node usage problems
78
-
-**`--vue-plugin`**—
78
+
-**`--vue-plugin`**—
79
79
Enable the vue plugin and detect vue usage problems
80
80
81
81
## Fix Problems
82
82
83
-
-**`--fix`**—
83
+
-**`--fix`**—
84
84
Fix as many issues as possible. Only unfixed issues are reported in the output.
85
-
-**`--fix-suggestions`**—
85
+
-**`--fix-suggestions`**—
86
86
Apply auto-fixable suggestions. May change program behavior.
87
-
-**`--fix-dangerously`**—
87
+
-**`--fix-dangerously`**—
88
88
Apply dangerous fixes and suggestions
89
89
90
90
## Ignore Files
91
91
92
-
-**`--ignore-path`**=_`PATH`_ —
92
+
-**`--ignore-path`**=_`PATH`_ —
93
93
Specify the file to use as your `.eslintignore`
94
-
-**`--ignore-pattern`**=_`PAT`_ —
94
+
-**`--ignore-pattern`**=_`PAT`_ —
95
95
Specify patterns of files to ignore (in addition to those in `.eslintignore`)
96
96
97
97
The supported syntax is the same as for `.eslintignore` and `.gitignore` files. You should quote your patterns in order to avoid shell interpretation of glob patterns.
98
98
99
-
-**`--no-ignore`**—
99
+
-**`--no-ignore`**—
100
100
Disable excluding files from `.eslintignore` files, **`--ignore-path`** flags and **`--ignore-pattern`** flags
101
101
102
102
> [!NOTE]
103
103
> `.gitignore` is only respected inside a Git repository.
104
104
105
105
## Handle Warnings
106
106
107
-
-**`--quiet`**—
107
+
-**`--quiet`**—
108
108
Disable reporting on warnings, only errors are reported
109
-
-**`--deny-warnings`**—
109
+
-**`--deny-warnings`**—
110
110
Ensure warnings produce a non-zero exit code
111
-
-**`--max-warnings`**=_`INT`_ —
111
+
-**`--max-warnings`**=_`INT`_ —
112
112
Specify a warning threshold, which can be used to force exit with an error status if there are too many warning-level rule violations in your project
113
113
114
114
## Output
@@ -118,18 +118,18 @@ Arguments:
118
118
119
119
## Miscellaneous
120
120
121
-
-**`--silent`**—
121
+
-**`--silent`**—
122
122
Do not display any diagnostics
123
-
-**`--threads`**=_`INT`_ —
123
+
-**`--threads`**=_`INT`_ —
124
124
Number of threads to use. Set to 1 for using only 1 CPU core.
125
-
-**`--print-config`**—
125
+
-**`--print-config`**—
126
126
This option outputs the configuration to be used. When present, no linting is performed and only config-related options are valid.
127
127
128
128
## Inline Configuration Comments
129
129
130
-
-**`--report-unused-disable-directives`**—
130
+
-**`--report-unused-disable-directives`**—
131
131
Report directive comments like `// oxlint-disable-line`, when no errors would have been reported on that line anyway
Same as `--report-unused-disable-directives`, but allows you to specify the severity level of the reported errors. Only one of these two options can be used at a time.
134
134
135
135
## Available positional items:
@@ -139,15 +139,15 @@ Arguments:
139
139
140
140
## Available options:
141
141
142
-
-**`--rules`**—
142
+
-**`--rules`**—
143
143
List all the rules that are currently registered
144
-
-**`--lsp`**—
144
+
-**`--lsp`**—
145
145
Start the language server
146
-
-**`--disable-nested-config`**—
146
+
-**`--disable-nested-config`**—
147
147
Disable the automatic loading of nested configuration files
148
-
-**`--type-aware`**—
148
+
-**`--type-aware`**—
149
149
Enable rules that require type information
150
-
-**`--type-check`**—
150
+
-**`--type-check`**—
151
151
Enable experimental type checking (includes TypeScript compiler diagnostics)
0 commit comments