Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lucasrmendonca opened this issue Jun 22, 2022 · 1 comment
Open

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

lucasrmendonca opened this issue Jun 22, 2022 · 1 comment

Comments

@lucasrmendonca
Copy link

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?

@lucasrmendonca
Copy link
Author

Hi @ta2edchimp any ideas on why this is happening?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant