-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
71 lines (71 loc) · 2.13 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
module.exports = {
root: true,
env: {
node: true,
browser: true,
jquery: true,
},
rules: {
'no-console': 'off',
'no-debugger': 'off',
semi: ['error', 'never'],
'prefer-const': [
'error',
{
destructuring: 'any',
ignoreReadBeforeAssign: false,
},
],
'no-var': 2,
'object-shorthand': 1,
'no-array-constructor': 1,
'prefer-destructuring': ['error', { object: true, array: false }],
quotes: ['error', 'single', { avoidEscape: false, allowTemplateLiterals: true }],
'template-curly-spacing': ['error', 'never'],
'func-style': ['error', 'expression', { allowArrowFunctions: true }],
'prefer-rest-params': 1,
'space-before-blocks': 1,
'space-before-function-paren': [
'error',
{
anonymous: 'never',
named: 'never',
asyncArrow: 'always',
},
],
'prefer-spread': 1,
'prefer-arrow-callback': [1, {}],
'arrow-spacing': ['error', { before: true, after: true }],
'arrow-parens': ['error', 'as-needed'],
'no-duplicate-imports': 1,
'dot-notation': 1,
'one-var': ['error', 'never'],
'no-multi-assign': 1,
eqeqeq: 1,
'nonblock-statement-body-position': ['error', 'below'],
'spaced-comment': 1,
'space-infix-ops': 1,
'eol-last': 0,
'newline-per-chained-call': ['error', { ignoreChainWithDepth: 2 }],
'padded-blocks': ['error', 'never'],
'space-in-parens': ['error', 'never'],
'array-bracket-spacing': ['error', 'never'],
'object-curly-spacing': ['error', 'always'],
'comma-dangle': [
'error',
{
arrays: 'only-multiline',
objects: 'only-multiline',
imports: 'only-multiline',
exports: 'never',
functions: 'never',
},
],
'no-unused-vars': ['error', { vars: 'all', args: 'after-used', ignoreRestSiblings: false }],
'no-empty-pattern': 0,
'no-useless-escape': 0,
},
parserOptions: {
parser: 'babel-eslint',
},
}