-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
82 lines (82 loc) · 2.58 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
module.exports = {
env: {
browser: true,
es6: true,
node: true
},
extends: [ 'eslint:recommended' ],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module'
},
rules: {
'default-param-last': 'off',
'import/order': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'max-len': [
'error',
{
'code': 150,
'ignoreUrls': true
}
],
'no-shadow': 'off',
'no-underscore-dangle': 'off',
'jsx-no-lambda': 'off',
'semi': ['error', 'always'],
'object-shorthand': 'error',
'quotes': ['error', 'single'],
'member-ordering': 'off',
'object-literal-sort-keys': 'off',
'no-shadowed-variable': 'off',
'no-consecutive-blank-lines': 'off',
'no-string-literal': 'off',
'jsx-no-multiline-js': 'off',
'jsx-boolean-value': 'off',
'arrow-parens': 'off',
'no-implicit-dependencies': 'off',
'no-submodule-imports': 'off',
'no-case-declarations': 'warn',
'jsx-alignment': 'off',
'jsx-wrap-multiline': 'off',
'arrow-body-style': 'off',
'class-methods-use-this': 'off',
'import/imports-first': 'off',
'import/newline-after-import': 'off',
'import/no-dynamic-require': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-named-as-default': 'off',
'import/no-webpack-loader-syntax': 'off',
'import/prefer-default-export': 'off',
'linebreak-style': 'off',
'operator-linebreak': ['error', 'after'],
'no-param-reassign': 'off',
'no-unused-vars': 'off',
'indent': [
'error',
4,
{
'SwitchCase': 1,
'ignoredNodes': [
'TemplateLiteral'
]
}
],
'array-callback-return': 'off',
'newline-per-chained-call': 'off',
'no-confusing-arrow': 'off',
'no-console': 'off',
'no-debugger': 'warn',
'no-use-before-define': 'off',
'object-curly-newline': ['error', {
'ImportDeclaration': { 'multiline': true, 'minProperties': 5 },
'ExportDeclaration': { 'multiline': true, 'minProperties': 5 }
}],
'prefer-template': 'error',
'no-plusplus': 'off',
'prefer-promise-reject-errors': 'off',
'template-curly-spacing': 'off',
'object-curly-spacing': ['error', 'always']
},
};