8000 docs: Change CLI -c to use flat config (#19103) · eslint/eslint@298625e · GitHub
[go: up one dir, main page]

10000
Skip to content

Commit 298625e

Browse files
authored
docs: Change CLI -c to use flat config (#19103)
1 parent 4ce625a commit 298625e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/src/use/command-line-interface.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,10 @@ This option allows you to specify an additional configuration file for ESLint (s
153153
##### `-c`, `--config` example
154154

155155
```shell
156-
npx eslint -c ~/my-eslint.json file.js
156+
npx eslint -c ~/my.eslint.config.js file.js
157157
```
158158

159-
This example uses the configuration file at `~/my-eslint.json`.
160-
161-
If `.eslintrc.*` and/or `package.json` files are also used for configuration (i.e., `--no-eslintrc` was not specified), the configurations are merged. Options from this configuration file have precedence over the options from `.eslintrc.*` and `package.json` files.
159+
This example uses the configuration file at `~/my.eslint.config.js`, which is used instead of searching for an `eslint.config.js` file.
162160

163161
#### `--inspect-config`
164162

0 commit comments

Comments
 (0)
0