Skip to content

Rules in the "rules" json key are not being considered #346

@lucasrmendonca

Description

@lucasrmendonca

I am using a .eslintrc.json file as such:

{
  "settings": { "import/extensions": [".js"] },
  "ignorePatterns": ["node_modules/"],
  "parserOptions": { "ecmaVersion": "latest" },
  "extends": ["eslint:recommended"],
  "rules": {
    "arrow-body-style": ["error", "as-needed"],
  }
}

But even though I have arrow-body-style being used, when I run:

npx eslint-find-rules -unused --ext .json

It lists the arrow-body-style rule as one of the "unused" ones. Why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions