-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.eslintrc
More file actions
124 lines (124 loc) · 2.81 KB
/
.eslintrc
File metadata and controls
124 lines (124 loc) · 2.81 KB
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": [
"standard",
"eslint:recommended",
"plugin:node/recommended",
"plugin:import/recommended",
"plugin:promise/recommended",
"plugin:json/recommended-legacy"
],
"parserOptions": {
"ecmaVersion": 2020
},
"rules": {
"strict": 0,
"camelcase": "off",
"prefer-const": "error",
"curly": [
"error",
"all"
],
"arrow-body-style": "off",
"prefer-arrow-callback": "off",
"max-len": "off",
"no-mixed-operators": "off",
"no-tabs": "off",
"quotes": "off",
"semi": "off",
"space-before-function-paren": "off",
"indent": "off",
"object-curly-spacing": "off",
"array-bracket-spacing": "off",
"block-spacing": "off",
"comma-dangle": "off",
"comma-spacing": "off",
"computed-property-spacing": "off",
"func-call-spacing": "off",
"key-spacing": "off",
"keyword-spacing": "off",
"no-multi-spaces": "off",
"no-trailing-spaces": "off",
"no-whitespace-before-property": "off",
"padded-blocks": "off",
"rest-spread-spacing": "off",
"space-before-blocks": "off",
"space-in-parens": "off",
"space-infix-ops": "off",
"template-curly-spacing": "off",
"yield-star-spacing": "off",
"max-nested-callbacks": [
"error",
{
"max": 5
}
],
"max-statements-per-line": [
"error",
{
"max": 2
}
],
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "(_.*)"
}
],
"no-var": "error",
"no-empty-function": "error",
"no-inline-comments": "off",
"no-lonely-if": "error",
"no-new": "off",
"no-return-assign": "off",
"spaced-comment": "error",
"yoda": "error",
"no-useless-constructor": "off",
"no-async-promise-executor": "off",
"no-new-func": "off",
"no-undef": "off",
"node/exports-style": [
"error",
"module.exports"
],
"node/file-extension-in-import": "off",
"node/prefer-global/buffer": [
"error",
"always"
],
"node/prefer-global/console": [
"error",
"always"
],
"node/prefer-global/process": [
"error",
"always"
],
"node/prefer-global/url-search-params": [
"error",
"always"
],
"node/prefer-global/url": [
"error",
"always"
],
"node/prefer-promises/dns": "error",
"node/prefer-promises/fs": "off",
"node/no-unpublished-require": "off",
"node/no-unpublished-import": "off",
"node/no-unsupported-features/es-syntax": "off",
"node/no-path-concat": "off",
"node/no-extraneous-import": "off",
"node/no-missing-import": "off",
"import/extensions": [
"error",
"ignorePackages"
],
"promise/always-return": "off"
}
}