Skip to content

Commit 5015acb

Browse files
committed
Enforce tab indentation
It's very common that the indentation is incorrect when someone publishes a PR, because we're all use to different things and our editors doesn't always tell us the truth (atleast not IntelliJ). So by having this rule us maintainers does not need to update the code after a PR just to fix the indentation - it's already been forced upon the creator of the PR. This saves us a lot of time.
1 parent f4e62dd commit 5015acb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.eslintrc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ module.exports = {
3535
// Enforce consistent spacing inside parentheses
3636
// "space-in-parens": [2, "always"],
3737
// Enforce the consistent use of either backticks, double, or single quotes
38-
"quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals": true }]
38+
"quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
39+
// Enforce using tabs for indentation
40+
"indent": [2, "tab", { "SwitchCase": 1 }]
3941
}
4042
};

0 commit comments

Comments
 (0)