Skip to content

Commit 389744b

Browse files
fix: use @eslint/config-inspector@latest (#18483)
* fix: use `@eslint/config-inspector@latest` like @eslint/create-config (#18369), it may use an outdated version, this commit forces to use the latest version. fixes #18481 * Update docs/src/use/command-line-interface.md Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com> --------- Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
1 parent 70118a5 commit 389744b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ If `.eslintrc.*` and/or `package.json` files are also used for configuration (i.
161161

162162
#### `--inspect-config`
163163

164-
**Flat Config Mode Only.** This option runs `npx @eslint/config-inspector` to start the config inspector. You can use the config inspector to better understand what your configuration is doing and which files it applies to. When you use this flag, the CLI does not perform linting.
164+
**Flat Config Mode Only.** This option runs `npx @eslint/config-inspector@latest` to start the config inspector. You can use the config inspector to better understand what your configuration is doing and which files it applies to. When you use this flag, the CLI does not perform linting.
165165

166166
* **Argument Type**: No argument.
167167

lib/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,14 +448,14 @@ const cli = {
448448

449449
if (options.inspectConfig) {
450450

451-
log.info("You can also run this command directly using 'npx @eslint/config-inspector' in the same directory as your configuration file.");
451+
log.info("You can also run this command directly using 'npx @eslint/config-inspector@latest' in the same directory as your configuration file.");
452452

453453
try {
454454
const flatOptions = await translateOptions(options, "flat");
455455
const spawn = require("cross-spawn");
456456
const flags = await cli.calculateInspectConfigFlags(flatOptions.overrideConfigFile);
457457

458-
spawn.sync("npx", ["@eslint/config-inspector", ...flags], { encoding: "utf8", stdio: "inherit" });
458+
spawn.sync("npx", ["@eslint/config-inspector@latest", ...flags], { encoding: "utf8", stdio: "inherit" });
459459
} catch (error) {
460460
log.error(error);
461461
return 2;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy