MCPcopy Index your code
hub / github.com/eslint/config-inspector

github.com/eslint/config-inspector @v3.0.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.0.4 ↗ · + Follow
91 symbols 231 edges 46 files 4 documented · 4% 5 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ESLint Config Inspector

ESLint Config Inspector

npm version npm downloads

A visual tool for inspecting and understanding your ESLint flat configs.

Screenshot 1 Screenshot 2

Usage

Go to the project root that contains eslint.config.js and run:

npx @eslint/config-inspector@latest

Visit http://localhost:7777/ to view and play with your ESLint config. Changes to the config file will be updated automatically.

Run npx @eslint/config-inspector --help to see all the CLI options available.

Online Preview

Or play it right in your browser now:

Open in StackBlitz

Static Build

It is also possible to build a static web app for your ESLint config:

npx @eslint/config-inspector build

This will generate a Single-Page Application (SPA) under dist/__eslint-config-inspector, with the snapshot of the current ESLint config. You can deploy it somewhere, or use it for comparison etc.

Run npx @eslint/config-inspector build --help to see all the CLI options available.

Contributing

We operate under the ESLint Contributor Guidelines, so please be sure to read them before contributing. If you're not sure where to dig in, check out the issues.

Development

This project uses the following stack:

To start the development server:

  • Install dependencies via pnpm install (we highly recommend you to enable corepack enable first)
  • Run pnpm cli:dev to build the SPA once and start the inspector at http://localhost:7777
  • Run pnpm dev to iterate on Vue components with HMR (the payload fetch will fail without the inspector running)

To test the production build:

  • Run pnpm build to build the inspector tool and the CLI
  • Run pnpm start to start the production server at http://localhost:7777

License

Apache-2.0 License

Sponsors

The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. Become a Sponsor to get your logo on our READMEs and website.

Platinum Sponsors

Automattic

Gold Sponsors

Qlty Software

Silver Sponsors

Vite Liftoff StackBlitz

Bronze Sponsors

Cybozu SAP CrawlJobs Syntax Depot Icons8 Discord GitBook HeroCoders Citadel AI

Technology Sponsors

Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work.

Netlify Algolia 1Password

Extension points exported contracts — how you extend this code

ReadConfigOptions (Interface)
(no doc)
src/configs.ts
DevtoolFlags (Interface)
(no doc)
src/devframe.ts
BuildOptions (Interface)
(no doc)
src/build-wrapper.ts
FlatConfigItem (Interface)
(no doc)
shared/types.ts
ResolveConfigPathOptions (Interface)
(no doc)
src/configs.ts
Payload (Interface)
(no doc)
shared/types.ts
ESLintConfig (Interface)
(no doc)
src/configs.ts
ResolvedPayload (Interface)
(no doc)
shared/types.ts

Core symbols most depended-on inside this repo

resolve
called by 14
src/configs.ts
gotoInspector
called by 13
tests/e2e/specs/_helpers.ts
matchFile
called by 13
shared/configs.ts
readConfig
called by 6
src/configs.ts
resolveConfigPath
called by 3
src/configs.ts
prettyPrint
called by 3
src/errors.ts
safeFilter
called by 2
src/configs.ts
get
called by 2
app/composables/payload.ts

Shape

Function 60
Interface 16
Class 8
Method 7

Languages

TypeScript100%

Modules by API surface

src/configs.ts12 symbols
src/errors.ts11 symbols
shared/types.ts10 symbols
shared/configs.ts10 symbols
app/composables/payload.ts10 symbols
tests/fixtures/composer/eslint.config.js4 symbols
src/devframe.ts4 symbols
src/devframe-vite-plugin.ts3 symbols
app/composables/strings.ts3 symbols
app/composables/options.ts3 symbols
app/composables/color.ts3 symbols
tests/e2e/specs/a11y.spec.ts2 symbols

For agents

$ claude mcp add config-inspector \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact