Skip to content

Commit 2e2f255

Browse files
tools: enable space-after-keywords in eslint
Requires that you do: if (x) { ... } Rather than: if(x) { ... }
1 parent f46676e commit 2e2f255

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.eslintrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ rules:
6666
eol-last: 2
6767
## no trailing spaces
6868
no-trailing-spaces: 2
69+
# require space after keywords, eg 'for (..)'
70+
space-after-keywords: 2
6971

7072
# Strict Mode
7173
# list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode

0 commit comments

Comments
 (0)