Add eslint rule for consistent curly brackets
This commit is contained in:
parent
74920c9f96
commit
101abc762b
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ module.exports = {
|
||||||
'brace-style': ['error', '1tbs', { 'allowSingleLine': true }],
|
'brace-style': ['error', '1tbs', { 'allowSingleLine': true }],
|
||||||
'comma-dangle': ['error', 'never'],
|
'comma-dangle': ['error', 'never'],
|
||||||
'comma-spacing': ['error'],
|
'comma-spacing': ['error'],
|
||||||
|
'curly': ['error', 'multi-line', 'consistent'],
|
||||||
'default-case-last': ['error'],
|
'default-case-last': ['error'],
|
||||||
'eol-last': ['error'],
|
'eol-last': ['error'],
|
||||||
'indent': ['error', 4, { 'SwitchCase': 1 }],
|
'indent': ['error', 4, { 'SwitchCase': 1 }],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue