Update .eslintrc.js
This commit is contained in:
parent
1aabd70f66
commit
0dbeafff25
@ -14,13 +14,14 @@ module.exports = {
|
|||||||
rules: {
|
rules: {
|
||||||
'indent': ['error', 'tab', {
|
'indent': ['error', 'tab', {
|
||||||
'SwitchCase': 1,
|
'SwitchCase': 1,
|
||||||
|
'MemberExpression': 'off',
|
||||||
'flatTernaryExpressions': true,
|
'flatTernaryExpressions': true,
|
||||||
'ArrayExpression': 'first',
|
'ArrayExpression': 'first',
|
||||||
'ObjectExpression': 'first',
|
'ObjectExpression': 'first',
|
||||||
}],
|
}],
|
||||||
'eol-last': ['error', 'always'],
|
'eol-last': ['error', 'always'],
|
||||||
'semi': ['error', 'always'],
|
'semi': ['error', 'always'],
|
||||||
'quotes': ['error', 'single'],
|
'quotes': ['warn', 'single'],
|
||||||
'keyword-spacing': ['error', {
|
'keyword-spacing': ['error', {
|
||||||
'before': true,
|
'before': true,
|
||||||
'after': true,
|
'after': true,
|
||||||
|
Loading…
Reference in New Issue
Block a user