-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
73 lines (69 loc) · 1.75 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
72
73
module.exports = {
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
},
env: {
node: true,
jest: true,
},
plugins: ['jest'],
'extends': [
'eslint:recommended',
'plugin:jest/recommended',
],
rules: {
'arrow-spacing': ['error', {
before: true,
after: true,
}],
'block-spacing': ['error', 'always'],
'brace-style': ['error', '1tbs'],
'camelcase': [
'error',
{
ignoreDestructuring: false,
ignoreImports: false,
properties: 'always',
}
],
'comma-dangle': ['error', 'always-multiline'],
'comma-spacing': ['error', {
before: false,
after: true,
}],
'curly': ['error', 'all'],
'default-case': 'error',
'dot-location': ['error', 'property'],
'dot-notation': 'error',
'eol-last': ['error', 'always'],
'eqeqeq': ['error', 'always'],
'func-call-spacing': ['error', 'never'],
'generator-star-spacing': ['error', 'both'],
'indent': ['error', 2],
'key-spacing': ['error', {
beforeColon: false,
afterColon: true,
mode: 'strict',
}],
'keyword-spacing': ['error', {
before: true,
after: true,
}],
'newline-per-chained-call': 'error',
'no-empty-function': 'error',
'no-floating-decimal': 'error',
'no-implicit-coercion': 'error',
'no-multi-spaces': 'error',
'no-trailing-spaces': 'error',
'no-sequences': 'error',
'no-whitespace-before-property': 'error',
'object-property-newline': 'error',
'quotes': ['error', 'single'],
'rest-spread-spacing': ['error', 'never'],
'semi': ['error', 'never'],
'space-before-function-paren': ['error', 'always'],
'yield-star-spacing': ['error', 'both'],
'yoda': ['error', 'never'],
}
}