@mimica/eslint-config 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/index.js +0 -294
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mimica/eslint-config",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Mimica eslint config",
|
|
5
|
-
"main": "index.
|
|
5
|
+
"main": "index.mjs",
|
|
6
|
+
"module": "index.mjs",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"test": "exit 0",
|
|
8
9
|
"prepublishOnly": "npm run lint-prettier",
|
package/index.js
DELETED
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extends: ["airbnb-base", "plugin:unicorn/recommended"],
|
|
3
|
-
env: {
|
|
4
|
-
es6: true,
|
|
5
|
-
},
|
|
6
|
-
plugins: [
|
|
7
|
-
"sonarjs",
|
|
8
|
-
"unicorn",
|
|
9
|
-
"inker",
|
|
10
|
-
"promise",
|
|
11
|
-
"you-dont-need-lodash-underscore",
|
|
12
|
-
"eslint-comments",
|
|
13
|
-
],
|
|
14
|
-
parser: "@babel/eslint-parser",
|
|
15
|
-
parserOptions: {
|
|
16
|
-
requireConfigFile: false,
|
|
17
|
-
},
|
|
18
|
-
rules: {
|
|
19
|
-
"arrow-parens": 0, // TODO: do not disable "arrow-parens" rule
|
|
20
|
-
camelcase: [
|
|
21
|
-
1,
|
|
22
|
-
{
|
|
23
|
-
allow: [],
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
"consistent-return": 0,
|
|
27
|
-
curly: [2, "all"],
|
|
28
|
-
"function-paren-newline": [0, "never"],
|
|
29
|
-
"guard-for-in": 1,
|
|
30
|
-
"implicit-arrow-linebreak": 0,
|
|
31
|
-
indent: 0,
|
|
32
|
-
"lines-between-class-members": [
|
|
33
|
-
2,
|
|
34
|
-
"always",
|
|
35
|
-
{
|
|
36
|
-
exceptAfterSingleLine: true,
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
"max-params": 2,
|
|
40
|
-
"no-confusing-arrow": 0,
|
|
41
|
-
"no-console": 2,
|
|
42
|
-
"no-continue": 0,
|
|
43
|
-
"no-loop-func": 1,
|
|
44
|
-
"no-param-reassign": [
|
|
45
|
-
2,
|
|
46
|
-
{
|
|
47
|
-
props: false,
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
"no-plusplus": 0,
|
|
51
|
-
"no-restricted-syntax": [
|
|
52
|
-
2,
|
|
53
|
-
"ForInStatement",
|
|
54
|
-
"LabeledStatement",
|
|
55
|
-
"WithStatement",
|
|
56
|
-
{
|
|
57
|
-
selector:
|
|
58
|
-
':matches(PropertyDefinition, MethodDefinition)[accessibility="private"]',
|
|
59
|
-
message: "Use #private instead.",
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
"no-underscore-dangle": 0,
|
|
63
|
-
"no-unused-private-class-members": 2,
|
|
64
|
-
"no-unused-vars": [2, { args: "none" }],
|
|
65
|
-
"no-useless-escape": 2,
|
|
66
|
-
"object-curly-newline": 0,
|
|
67
|
-
"operator-linebreak": 0,
|
|
68
|
-
"padding-line-between-statements": [
|
|
69
|
-
2,
|
|
70
|
-
{
|
|
71
|
-
blankLine: "always",
|
|
72
|
-
prev: "*",
|
|
73
|
-
next: "function",
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
blankLine: "always",
|
|
77
|
-
prev: "function",
|
|
78
|
-
next: "*",
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
blankLine: "always",
|
|
82
|
-
prev: "*",
|
|
83
|
-
next: "class",
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
blankLine: "always",
|
|
87
|
-
prev: "class",
|
|
88
|
-
next: "*",
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
blankLine: "always",
|
|
92
|
-
prev: "cjs-export",
|
|
93
|
-
next: "*",
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
blankLine: "always",
|
|
97
|
-
prev: "*",
|
|
98
|
-
next: "cjs-export",
|
|
99
|
-
},
|
|
100
|
-
],
|
|
101
|
-
"prefer-destructuring": [
|
|
102
|
-
2,
|
|
103
|
-
{
|
|
104
|
-
array: false,
|
|
105
|
-
object: true,
|
|
106
|
-
},
|
|
107
|
-
],
|
|
108
|
-
quotes: [0, "double"],
|
|
109
|
-
semi: [2, "always"],
|
|
110
|
-
|
|
111
|
-
"sonarjs/no-inverted-boolean-check": 2,
|
|
112
|
-
"sonarjs/prefer-immediate-return": 2,
|
|
113
|
-
"sonarjs/prefer-while": 2,
|
|
114
|
-
|
|
115
|
-
"unicorn/better-regex": 2,
|
|
116
|
-
"unicorn/catch-error-name": [
|
|
117
|
-
2,
|
|
118
|
-
{
|
|
119
|
-
name: "err",
|
|
120
|
-
ignore: ["error"],
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
|
-
"unicorn/consistent-destructuring": 2,
|
|
124
|
-
"unicorn/consistent-existence-index-check": 0,
|
|
125
|
-
"unicorn/consistent-function-scoping": 0,
|
|
126
|
-
"unicorn/custom-error-definition": 2,
|
|
127
|
-
"unicorn/empty-brace-spaces": 0,
|
|
128
|
-
"unicorn/explicit-length-check": 0,
|
|
129
|
-
"unicorn/filename-case": 0,
|
|
130
|
-
"unicorn/import-style": 0,
|
|
131
|
-
"unicorn/no-anonymous-default-export": 0,
|
|
132
|
-
"unicorn/no-array-callback-reference": 0,
|
|
133
|
-
"unicorn/no-array-reduce": [
|
|
134
|
-
2,
|
|
135
|
-
{
|
|
136
|
-
allowSimpleOperations: false,
|
|
137
|
-
},
|
|
138
|
-
],
|
|
139
|
-
"unicorn/no-nested-ternary": 0,
|
|
140
|
-
"unicorn/no-null": 0,
|
|
141
|
-
"unicorn/no-process-exit": 0,
|
|
142
|
-
"unicorn/no-useless-undefined": 0, // TODO: enable
|
|
143
|
-
"unicorn/numeric-separators-style": 0,
|
|
144
|
-
"unicorn/prefer-add-event-listener": 0, // TODO: enable
|
|
145
|
-
"unicorn/prefer-module": 0,
|
|
146
|
-
"unicorn/prefer-query-selector": 0,
|
|
147
|
-
"unicorn/prefer-set-has": 0, // TODO: enable
|
|
148
|
-
"unicorn/prefer-spread": 0, // TODO: enable
|
|
149
|
-
"unicorn/prefer-switch": 0,
|
|
150
|
-
"unicorn/prefer-ternary": 0, // TODO: enable
|
|
151
|
-
"unicorn/prefer-top-level-await": 0,
|
|
152
|
-
"unicorn/prevent-abbreviations": 0,
|
|
153
|
-
"unicorn/switch-case-braces": 0,
|
|
154
|
-
// "unicorn/template-indent": [
|
|
155
|
-
// 2,
|
|
156
|
-
// {
|
|
157
|
-
// selectors: ["TemplateLiteral"],
|
|
158
|
-
// comments: ["sql"],
|
|
159
|
-
// },
|
|
160
|
-
// ],
|
|
161
|
-
|
|
162
|
-
"inker/enforce-import-name": [
|
|
163
|
-
2,
|
|
164
|
-
{
|
|
165
|
-
paths: [
|
|
166
|
-
{
|
|
167
|
-
name: "path",
|
|
168
|
-
importNames: [
|
|
169
|
-
{
|
|
170
|
-
imported: "namespace",
|
|
171
|
-
local: "Path",
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
imported: "default",
|
|
175
|
-
local: "Path",
|
|
176
|
-
},
|
|
177
|
-
],
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
name: "date-fns",
|
|
181
|
-
importNames: [
|
|
182
|
-
{
|
|
183
|
-
imported: "format",
|
|
184
|
-
local: "formatDate",
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
imported: "isValid",
|
|
188
|
-
local: "isDateValid",
|
|
189
|
-
},
|
|
190
|
-
],
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
name: "joi",
|
|
194
|
-
importNames: [
|
|
195
|
-
{
|
|
196
|
-
imported: "default",
|
|
197
|
-
local: "Joi",
|
|
198
|
-
},
|
|
199
|
-
],
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
name: "lodash",
|
|
203
|
-
importNames: [
|
|
204
|
-
{
|
|
205
|
-
imported: "namespace",
|
|
206
|
-
local: "_",
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
imported: "default",
|
|
210
|
-
local: "_",
|
|
211
|
-
},
|
|
212
|
-
],
|
|
213
|
-
},
|
|
214
|
-
],
|
|
215
|
-
},
|
|
216
|
-
],
|
|
217
|
-
"inker/no-true-as-default": 2,
|
|
218
|
-
|
|
219
|
-
"import/order": [
|
|
220
|
-
2,
|
|
221
|
-
{
|
|
222
|
-
groups: [
|
|
223
|
-
"builtin",
|
|
224
|
-
"external",
|
|
225
|
-
"internal",
|
|
226
|
-
"parent",
|
|
227
|
-
"sibling",
|
|
228
|
-
"index",
|
|
229
|
-
],
|
|
230
|
-
"newlines-between": "always",
|
|
231
|
-
distinctGroup: false,
|
|
232
|
-
warnOnUnassignedImports: true,
|
|
233
|
-
},
|
|
234
|
-
],
|
|
235
|
-
|
|
236
|
-
// "promise/catch-or-return": 2,
|
|
237
|
-
"promise/no-new-statics": 2,
|
|
238
|
-
"promise/no-return-wrap": 2,
|
|
239
|
-
"promise/param-names": 2,
|
|
240
|
-
"promise/prefer-await-to-then": 2,
|
|
241
|
-
"promise/valid-params": 2,
|
|
242
|
-
|
|
243
|
-
"you-dont-need-lodash-underscore/concat": 2,
|
|
244
|
-
"you-dont-need-lodash-underscore/drop": 2,
|
|
245
|
-
"you-dont-need-lodash-underscore/drop-right": 2,
|
|
246
|
-
"you-dont-need-lodash-underscore/fill": 2,
|
|
247
|
-
"you-dont-need-lodash-underscore/find": 2,
|
|
248
|
-
"you-dont-need-lodash-underscore/find-index": 2,
|
|
249
|
-
// "you-dont-need-lodash-underscore/from-pairs": 2,
|
|
250
|
-
"you-dont-need-lodash-underscore/index-of": 2,
|
|
251
|
-
"you-dont-need-lodash-underscore/is-array": 2,
|
|
252
|
-
// "you-dont-need-lodash-underscore/is-array-buffer": 2,
|
|
253
|
-
"you-dont-need-lodash-underscore/join": 2,
|
|
254
|
-
"you-dont-need-lodash-underscore/last-index-of": 2,
|
|
255
|
-
"you-dont-need-lodash-underscore/slice": 2,
|
|
256
|
-
"you-dont-need-lodash-underscore/each": 2,
|
|
257
|
-
"you-dont-need-lodash-underscore/every": 2,
|
|
258
|
-
"you-dont-need-lodash-underscore/filter": 2,
|
|
259
|
-
"you-dont-need-lodash-underscore/includes": 2,
|
|
260
|
-
"you-dont-need-lodash-underscore/is-nil": 2,
|
|
261
|
-
"you-dont-need-lodash-underscore/map": 2,
|
|
262
|
-
// "you-dont-need-lodash-underscore/pluck": 2,
|
|
263
|
-
"you-dont-need-lodash-underscore/reduce": 2,
|
|
264
|
-
"you-dont-need-lodash-underscore/reduce-right": 2,
|
|
265
|
-
"you-dont-need-lodash-underscore/size": 2,
|
|
266
|
-
"you-dont-need-lodash-underscore/some": 2,
|
|
267
|
-
"you-dont-need-lodash-underscore/bind": 2,
|
|
268
|
-
// "you-dont-need-lodash-underscore/partial": 2,
|
|
269
|
-
"you-dont-need-lodash-underscore/is-finite": 2,
|
|
270
|
-
"you-dont-need-lodash-underscore/is-integer": 2,
|
|
271
|
-
"you-dont-need-lodash-underscore/is-nan": 2,
|
|
272
|
-
"you-dont-need-lodash-underscore/assign": 2,
|
|
273
|
-
// "you-dont-need-lodash-underscore/extend": 2,
|
|
274
|
-
"you-dont-need-lodash-underscore/keys": 2,
|
|
275
|
-
"you-dont-need-lodash-underscore/to-pairs": 2,
|
|
276
|
-
"you-dont-need-lodash-underscore/values": 2,
|
|
277
|
-
"you-dont-need-lodash-underscore/ends-with": 2,
|
|
278
|
-
"you-dont-need-lodash-underscore/pad-start": 2,
|
|
279
|
-
"you-dont-need-lodash-underscore/pad-end": 2,
|
|
280
|
-
"you-dont-need-lodash-underscore/repeat": 2,
|
|
281
|
-
"you-dont-need-lodash-underscore/replace": 2,
|
|
282
|
-
"you-dont-need-lodash-underscore/split": 2,
|
|
283
|
-
"you-dont-need-lodash-underscore/starts-with": 2,
|
|
284
|
-
// "you-dont-need-lodash-underscore/template": 2,
|
|
285
|
-
|
|
286
|
-
"eslint-comments/no-unused-disable": 2,
|
|
287
|
-
"eslint-comments/no-use": [
|
|
288
|
-
2,
|
|
289
|
-
{
|
|
290
|
-
allow: ["eslint-disable", "eslint-disable-next-line"],
|
|
291
|
-
},
|
|
292
|
-
],
|
|
293
|
-
},
|
|
294
|
-
};
|