Skip to content

Commit f158b09

Browse files
committed
Enforce default clauses in switch statements to be last (default-case-last)
Fixes standard/standard#1553
1 parent 57e4704 commit f158b09

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

eslintrc.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
"rules": {
2929
"no-loss-of-precision": "error",
30+
"default-case-last": "error",
31+
3032
"accessor-pairs": "error",
3133
"array-bracket-spacing": ["error", "never"],
3234
"arrow-spacing": ["error", { "before": true, "after": true }],

0 commit comments

Comments
 (0)