Content-Length: 262561 | pFad | https://github.com/eslint/eslint/commit/389744be255717c507fafc158746e579ac08d77e

29 fix: use `@eslint/config-inspector@latest` (#18483) · eslint/eslint@389744b · GitHub
Skip to content

Commit

Permalink
fix: use @eslint/config-inspector@latest (#18483)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
aladdin-add and mdjermanovic authored May 22, 2024
1 parent 70118a5 commit 389744b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/use/command-line-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ If `.eslintrc.*` and/or `package.json` files are also used for configuration (i.

#### `--inspect-config`

**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.
**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.

* **Argument Type**: No argument.

Expand Down
4 changes: 2 additions & 2 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,14 +448,14 @@ const cli = {

if (options.inspectConfig) {

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

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

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

0 comments on commit 389744b

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/eslint/eslint/commit/389744be255717c507fafc158746e579ac08d77e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy