-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.js
96 lines (96 loc) · 2.84 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
module.exports = {
env: {
browser: true,
es6: true,
node: true,
jasmine: true,
},
parser: '@babel/eslint-parser',
parserOptions: {
sourceType: 'module',
},
globals: {
readFixtures: false,
},
plugins: ['import', 'no-for-of-loops'],
settings: {
'import/extensions': ['.js'],
},
root: true,
rules: {
'func-style': ['error', 'declaration', { allowArrowFunctions: true }],
'import/named': ['error'],
'import/no-unresolved': ['error'],
'import/newline-after-import': ['warn'],
'linebreak-style': ['warn', 'unix'],
'eol-last': ['warn', 'always'],
'no-console': ['error'],
'no-else-return': ['warn'],
'no-for-of-loops/no-for-of-loops': ['error'],
'no-multi-spaces': [
'warn',
{
exceptions: { VariableDeclarator: true, ImportDeclaration: true },
},
],
'no-trailing-spaces': ['warn'],
'no-var': ['warn'],
'no-undef': ['error'],
'no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', ignoreRestSiblings: true, args: 'after-used' },
],
'object-shorthand': ['warn'],
'prefer-template': ['warn'],
'prefer-const': ['warn'],
'prefer-rest-params': ['error'],
'prefer-spread': ['warn'],
'space-before-function-paren': ['warn', 'never'],
'no-debugger': ['error'],
'no-shadow': ['error'],
'getter-return': ['error'],
'no-extra-semi': ['warn'],
'no-unreachable': ['error'],
'valid-typeof': ['error'],
eqeqeq: ['error'],
'no-alert': ['error'],
'no-self-assign': ['error'],
'no-self-compare': ['error'],
'no-useless-return': ['warn'],
'no-const-assign': ['error'],
'no-duplicate-imports': ['error'],
'no-multiple-empty-lines': ['warn'],
'no-restricted-globals': ['error', 'fdescribe', 'fit', 'xdescribe', 'xit'],
'no-constant-condition': ['error'],
'no-func-assign': ['error'],
'no-unexpected-multiline': ['error'],
'no-unsafe-finally': ['error'],
'no-unsafe-negation': ['error'],
'no-dupe-args': ['error'],
'no-dupe-keys': ['error'],
'no-duplicate-case': ['error'],
'no-ex-assign': ['error'],
'no-cond-assign': ['error'],
'no-compare-neg-zero': ['error'],
'no-control-regex': ['error'],
'no-invalid-regexp': ['error'],
'no-obj-calls': ['error'],
'no-sparse-arrays': ['error'],
'no-global-assign': ['error'],
'no-new-func': ['error'],
'no-new-wrappers': ['error'],
'no-param-reassign': ['error', { props: true }],
'no-proto': ['error'],
'no-redeclare': ['error'],
'no-return-assign': ['error'],
'no-octal': ['error'],
'no-sequences': ['error'],
'no-unmodified-loop-condition': ['error'],
'no-unused-expressions': ['error'],
'no-unused-labels': ['error'],
'no-useless-call': ['error'],
'no-useless-escape': ['error'],
'no-void': ['error'],
'no-with': ['error'],
},
};