bahmutov / eslint-rules

My custom eslint rules in addition to the ones provided at http://eslint.org/
97 stars 16 forks source link

"no-commented-out-code" rule is only logging error for specific code blocks #17

Open learnwithgurpreet opened 6 years ago

learnwithgurpreet commented 6 years ago

If I am commenting specific set of block blocks I am getting error but generic code blocks are not getting error messages.

Happy Scenario

image

Not working

image

.eslintrc file settings:

"extends": [ "eslint:recommended" ], "parserOptions": { "ecmaVersion": 6, "sourceType": "module", "ecmaFeatures": { "jsx": true } }, "rules": { "max-params": ["error", { "max": 7 }], "max-statements": ["error", { "max": 100 }], "max-lines": ["error", {"max": 1000}], "max-len": 0, "complexity": ["error", { "max": 10 }], "object-shorthand": ["warn", "properties"], "array-callback-return": "error", "no-undef": "error", "extra-rules/no-commented-out-code": "warn", "no-inline-comments": 2 }`