-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
48 lines (48 loc) · 1.89 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
module.exports = {
env: {
es6: true,
node: true,
jasmine: true
},
parserOptions: {
ecmaVersion: 2018
},
rules: {
'no-underscore-dangle': 0,
indent: ['error', 4, { SwitchCase: 1 }],
quotes: ['error', 'single'],
'quote-props': ['error', 'as-needed'],
semi: ['error', 'always'],
'no-undef': ['error'],
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'array-bracket-spacing': ['error', 'never'],
'comma-spacing': ['error', { before: false, after: true }],
'space-infix-ops': 'error',
'space-before-function-paren': ['error', 'never'],
'no-extra-semi': 'error',
curly: ['error', 'multi-line', 'consistent'],
yoda: 'error',
"no-console": "warn",
'no-cond-assign': 'warn',
'no-label-var': 'error',
'no-shadow': ['error', { builtinGlobals: false, hoist: 'functions', allow: [] }],
'array-bracket-newline': ['error', 'consistent'],
'comma-dangle': ['error', 'never'],
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'block-spacing': 'error',
'computed-property-spacing': ['error', 'never'],
'eol-last': ['error', 'always'],
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
'keyword-spacing': ['error', { before: true, after: true }],
'no-mixed-operators': 'error',
'no-mixed-spaces-and-tabs': 'error',
'no-nested-ternary': 'error',
'no-trailing-spaces': 'error',
'no-unneeded-ternary': 'error',
'spaced-comment': ['error', 'always'],
'object-curly-spacing': ['error', 'always'],
'no-unexpected-multiline': ['error'],
'object-property-newline': ['error', {allowAllPropertiesOnSameLine:true}],
'arrow-parens': ['error','as-needed']
}
};