capitalized-comments conflicts with default-case ("no default")
robertrossmann opened this issue · 2 comments
robertrossmann commented
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".
robertrossmann commented
PR with fix approved, pending merge: eslint/eslint#7742
robertrossmann commented
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).