-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
52 lines (52 loc) · 1.57 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
module.exports = {
env: {
browser: true,
es6: true,
node: true
},
extends: 'eslint:recommended',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module'
},
plugins: ['import'],
rules: {
'array-callback-return': ['error'],
camelcase: ['warn'],
eqeqeq: ['error'],
'func-style': ['error', 'declaration', { allowArrowFunctions: true }],
'import/named': ['error'],
'import/newline-after-import': ['warn'],
'import/no-unresolved': ['error'],
'linebreak-style': ['warn', 'unix'],
'max-classes-per-file': ['error', 1],
'no-alert': ['error'],
'no-console': ['error'],
'no-const-assign': ['error'],
'no-debugger': ['error'],
'no-duplicate-imports': ['error'],
'no-else-return': ['error'],
'no-extra-bind': ['error'],
'no-invalid-this': ['error'],
'no-multiple-empty-lines': ['warn'],
'no-multi-spaces': [
'warn',
{ exceptions: { VariableDeclarator: true, ImportDeclaration: true } }
],
'no-restricted-globals': ['error', 'fdescribe', 'fit'],
'no-shadow': ['error'],
'no-trailing-spaces': ['warn'],
'no-undef': ['error'],
'no-unreachable': ['error'],
'no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', ignoreRestSiblings: true, args: 'after-used' }
],
'no-var': ['error'],
'object-shorthand': ['warn'],
'prefer-const': ['error'],
'prefer-rest-params': ['error'],
'prefer-spread': ['warn'],
'prefer-template': ['warn']
}
};