Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indent switch statements #91

Open
TrevorKarjanis opened this issue May 28, 2022 · 1 comment
Open

Indent switch statements #91

TrevorKarjanis opened this issue May 28, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@TrevorKarjanis
Copy link
Collaborator

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

'indent': ['error', 4, { SwitchCase: 1 }]
@mure mure added the enhancement New feature or request label Jun 30, 2022
@jattasNI jattasNI self-assigned this Sep 8, 2022
@jattasNI
Copy link
Collaborator

jattasNI commented Sep 8, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants