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: docs/src/use/command-line-interface.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,9 +160,22 @@ Miscellaneous:
160
160
161
161
### Basic Configuration
162
162
163
+
#### `--no-config-lookup`
164
+
165
+
**Flat Config Mode Only.** Disables use of configuration from files.
166
+
167
+
-**Argument Type**: No argument.
168
+
169
+
##### `--no-config-lookup` example
170
+
171
+
{{ npx_tabs ({
172
+
package: "eslint",
173
+
args: ["--no-config-lookup", "file.js"]
174
+
}) }}
175
+
163
176
#### `--no-eslintrc`
164
177
165
-
**eslintrc Mode Only.** Disables use of configuration from `.eslintrc.*` and `package.json` files. For flat config mode, use `--no-config-lookup` instead.
178
+
**eslintrc Mode Only.** Disables use of configuration from `.eslintrc.*` and `package.json` files. For flat config mode, use [`--no-config-lookup`](#--no-config-lookup) instead.
166
179
167
180
-**Argument Type**: No argument.
168
181
@@ -231,7 +244,7 @@ This option allows you to specify additional file extensions to lint.
231
244
-**Multiple Arguments**: Yes
232
245
-**Default Value**: By default, ESLint lints files with extensions `.js`, `.mjs`, `.cjs`, and additional extensions [specified in the configuration file](configure/configuration-files#specifying-files-with-arbitrary-extensions).
233
246
234
-
This option is primarily intended for use in combination with the `--no-config-lookup` option, since in that case there is no configuration file in which the additional extensions would be specified.
247
+
This option is primarily intended for use in combination with the [`--no-config-lookup`](#--no-config-lookup) option, since in that case there is no configuration file in which the additional extensions would be specified.
235
248
236
249
##### `--ext` example
237
250
@@ -365,7 +378,7 @@ This option specifies the rules to be used.
365
378
366
379
These rules are merged with any rules specified with configuration files. If the rule is defined in a plugin, you have to prefix the rule ID with the plugin name and a `/`.
367
380
368
-
To ignore rules in `.eslintrc`configuration files and only run rules specified in the command line, use the `--rule` flag in combination with the [`--no-eslintrc`](#--no-eslintrc) flag.
381
+
To ignore rules in configuration files and only run rules specified in the command line, use the `--rule` flag in combination with the [`--no-config-lookup`](#--no-config-lookup) flag.
369
382
370
383
##### `--rule` example
371
384
@@ -389,7 +402,7 @@ To ignore rules in `.eslintrc` configuration files and only run rules specified
0 commit comments