/
eslintrc.json
145 lines (145 loc) · 4.3 KB
/
eslintrc.json
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"rules": {
"curly": ["error", "all"],
"lines-between-class-members": [
"error",
"always",
{
"exceptAfterSingleLine": true
}
],
"prefer-arrow-callback": "error",
"prefer-destructuring": "off",
"quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": false
}
],
"eslint-comments/disable-enable-pair": [
"error",
{
"allowWholeFile": true
}
],
"eslint-comments/no-aggregating-enable": "error",
"eslint-comments/no-duplicate-disable": "error",
"eslint-comments/no-restricted-disable": "off",
"eslint-comments/no-unlimited-disable": "error",
"eslint-comments/no-unused-disable": "error",
"eslint-comments/no-unused-enable": "error",
"eslint-comments/no-use": "off",
"filenames/match-exported": "error",
"filenames/match-regex": "off",
"filenames/no-index": "off",
"import/group-exports": "off",
"import/order": [
"error",
{
"groups": [
"builtin",
["external", "internal"],
"parent",
["index", "sibling"]
],
"newlines-between": "always"
}
],
"no-loops/no-loops": "error",
"optimize-regex/optimize-regex": "warn",
"promise/always-return": "error",
"promise/avoid-new": "off",
"promise/catch-or-return": "error",
"promise/no-callback-in-promise": "warn",
"promise/no-native": "off",
"promise/no-nesting": "error",
"promise/no-new-statics": "error",
"promise/no-promise-in-callback": "warn",
"promise/no-return-in-finally": "warn",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/prefer-await-to-callbacks": "off",
"promise/prefer-await-to-then": "warn",
"promise/valid-params": "off",
"sort-class-members/sort-class-members": [
"error",
{
"accessorPairPositioning": "getThenSet",
"order": [
"[static-properties]",
"[properties]",
"constructor",
"[static-methods]",
"[accessor-pairs]",
"[arrow-function-properties]",
"[methods]",
"[everything-else]"
],
"stopAfterFirstProblem": true
}
],
"unicorn/catch-error-name": "error",
"unicorn/custom-error-definition": "error",
"unicorn/error-message": "error",
"unicorn/escape-case": "off",
"unicorn/expiring-todo-comments": "off",
"unicorn/explicit-length-check": "error",
"unicorn/filename-case": [
"error",
{
"cases": {
"camelCase": true,
"pascalCase": true
}
}
],
"unicorn/import-index": "off",
"unicorn/new-for-builtins": "error",
"unicorn/no-abusive-eslint-disable": "off",
"unicorn/no-array-instanceof": "error",
"unicorn/no-console-spaces": "off",
"unicorn/no-fn-reference-in-iterator": "off",
"unicorn/no-for-loop": "off",
"unicorn/no-hex-escape": "error",
"unicorn/no-keyword-prefix": "off",
"unicorn/no-nested-ternary": "off",
"unicorn/no-new-buffer": "error",
"unicorn/no-process-exit": "off",
"unicorn/no-unreadable-array-destructuring": "warn",
"unicorn/no-unsafe-regex": "warn",
"unicorn/no-unused-properties": "warn",
"unicorn/no-zero-fractions": "error",
"unicorn/number-literal-case": "error",
"unicorn/prefer-add-event-listener": "warn",
"unicorn/prefer-dataset": "off",
"unicorn/prefer-event-key": "off",
"unicorn/prefer-exponentiation-operator": "off",
"unicorn/prefer-flat-map": "error",
"unicorn/prefer-includes": "error",
"unicorn/prefer-node-append": "off",
"unicorn/prefer-node-remove": "off",
"unicorn/prefer-query-selector": "off",
"unicorn/prefer-reflect-apply": "warn",
"unicorn/prefer-spread": "error",
"unicorn/prefer-starts-ends-with": "error",
"unicorn/prefer-string-slice": "error",
"unicorn/prefer-text-content": "off",
"unicorn/prefer-type-error": "error",
"unicorn/prevent-abbreveations": "off",
"unicorn/regex-shorthand": "off",
"unicorn/throw-new-error": "error"
},
"plugins": [
"eslint-comments",
"filenames",
"import",
"no-loops",
"optimize-regex",
"promise",
"sort-class-members",
"unicorn"
],
"extends": ["airbnb-base", "prettier"]
}