sarbbottam / eslint-find-rules

Find built-in ESLint rules you don't have in your custom config
http://npm.im/eslint-find-rules
MIT License
201 stars 33 forks source link

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

Open lucasrmendonca opened 2 years ago

lucasrmendonca commented 2 years ago

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 commented 9 months ago

Hi @ta2edchimp any ideas on why this is happening?