eslint / config-inspector

A visual tool for inspecting and understanding your ESLint flat configs.
https://www.npmjs.com/package/@eslint/config-inspector
Apache License 2.0
518 stars 15 forks source link

Install and Use as a Dependency #43

Closed Barzi-Ahmed closed 2 months ago

Barzi-Ahmed commented 2 months ago

Hello,

This is a great project and idea, but I would like to use config-inspector not as npx, but rather install it as devdepdency and use it as something like "npm run inspect" or "npm run insepct:reload" etc.

antfu commented 2 months ago

You can. Just install it as devDeps and add scripts:

{
  "scripts": {
    "inspect": "eslint-config-inspector"
  },
  "devDependencies": {
    "@eslint/config-inspector": "*"
  }
}