tools: enable space-after-keywords in eslint
Requires that you do: if (x) { ... } Rather than: if(x) { ... }
This commit is contained in:
parent
8af5962608
commit
96a2b2d54d
@ -66,6 +66,8 @@ rules:
|
|||||||
eol-last: 2
|
eol-last: 2
|
||||||
## no trailing spaces
|
## no trailing spaces
|
||||||
no-trailing-spaces: 2
|
no-trailing-spaces: 2
|
||||||
|
# require space after keywords, eg 'for (..)'
|
||||||
|
space-after-keywords: 2
|
||||||
|
|
||||||
# Strict Mode
|
# Strict Mode
|
||||||
# list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
|
# list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user