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
533 stars 15 forks source link

Mark `recommended` #6

Closed erosman closed 3 months ago

erosman commented 3 months ago

configs.recommended

It would be helpful to mark rules with "recommended": true, to show that they are part of configs.recommended.

Config payload https://github.com/eslint/config-inspector/blob/0c6ce2ca921be54600eaf7c42e35258eff72e884/composables/payload.ts#L22

Data example

    "constructor-super": {
      "type": "problem",
      "docs": {
        "description": "Require `super()` calls in constructors",
        "recommended": true,
        "url": "https://eslint.org/docs/latest/rules/constructor-super"
      },
      "name": "constructor-super",
      "plugin": "eslint"
    },
erosman commented 3 months ago

Thank you. Looks good. :+1:

erosman commented 3 months ago

@antfu Would you mind checking Discrepancy in the recommended?