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?
I am using a
.eslintrc.jsonfile as such:But even though I have
arrow-body-stylebeing used, when I run:It lists the
arrow-body-stylerule as one of the "unused" ones. Why?