ni / javascript-styleguide

JavaScript and TypeScript Style Guide
MIT License
9 stars 9 forks source link

Indent switch statements #91

Open TrevorKarjanis opened 2 years ago

TrevorKarjanis commented 2 years ago

Indentation for switch cases defaults to 0. Our rule should be the following to enforce four spaces.

'indent': ['error', 4, { SwitchCase: 1 }]
jattasNI commented 2 years ago

This seems like the right direction but we're confused why several codebases don't override our config but still indent their switch cases. @jattasNI to investigate and propose a rule change.