Skip to content

Handle deprecated rules #112

@alexilyaev

Description

@alexilyaev

Not sure what's the policy here for deprecated rules.
My use case is to catch deprecated rules in an existing config using eslint-find-rules.
The issue is that projects have configurations with deprecated rules and ESLint does not warn about it.

So I'd like to catch such cases, possible with:

npx eslint-find-rules -d .eslintrc

Ideally this would exit with a 0 value and when I bump ESLint or related configs/plugins, it'll exit with non 0 and show me which rules are deprecated.

Right now it's not possible when extending eslint-config-prettier:

.eslintrc:

{
  "extends": ["prettier"]
}
$ npx eslint-find-rules -d .eslintrc

deprecated rules

indent-legacy    no-spaced-func

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions