strvcom/eslint-config-javascript

capitalized-comments conflicts with default-case ("no default")

robertrossmann opened this issue · 2 comments

When the "no default" marker is used to intentionally omit a default case in a switch statement, it causes a warning for the capitalized-comments rule. Fixing it to "No default" instead triggers the default-case rule violation because it does not support "No default".

eslint/eslint#7673

PR with fix approved, pending merge: eslint/eslint#7742

Fix is now in ESLint, but I disabled this rule anyway because it caused too much pain when commenting out a piece of code during development and then uncommenting it back (the first letter got fixed to a capital letter which caused syntax errors).