@alexlit/config-eslint 41.0.0 → 41.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/CHANGELOG.md +2 -0
- package/package.json +1 -1
- package/plugins/etc.js +2 -1
- package/plugins/sort-class-members.js +42 -2
- package/plugins/typescript.js +1 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/plugins/etc.js
CHANGED
|
@@ -7,9 +7,10 @@ module.exports = {
|
|
|
7
7
|
plugins: ['etc'],
|
|
8
8
|
|
|
9
9
|
rules: {
|
|
10
|
+
'etc/no-implicit-any-catch': 'off',
|
|
10
11
|
'etc/no-misused-generics': 'error',
|
|
11
12
|
'etc/no-t': 'error',
|
|
12
|
-
'etc/prefer-less-than': '
|
|
13
|
+
'etc/prefer-less-than': 'off',
|
|
13
14
|
'etc/underscore-internal': 'error',
|
|
14
15
|
},
|
|
15
16
|
};
|
|
@@ -41,12 +41,35 @@ module.exports = {
|
|
|
41
41
|
},
|
|
42
42
|
],
|
|
43
43
|
|
|
44
|
+
models: [
|
|
45
|
+
{
|
|
46
|
+
groupByDecorator: 'Model',
|
|
47
|
+
sort: 'alphabetical',
|
|
48
|
+
type: 'property',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
groupByDecorator: 'ModelSync',
|
|
52
|
+
sort: 'alphabetical',
|
|
53
|
+
type: 'property',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
groupByDecorator: 'VModel',
|
|
57
|
+
sort: 'alphabetical',
|
|
58
|
+
type: 'property',
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
|
|
44
62
|
props: [
|
|
45
63
|
{
|
|
46
64
|
groupByDecorator: 'Prop',
|
|
47
65
|
sort: 'alphabetical',
|
|
48
66
|
type: 'property',
|
|
49
67
|
},
|
|
68
|
+
{
|
|
69
|
+
groupByDecorator: 'PropSync',
|
|
70
|
+
sort: 'alphabetical',
|
|
71
|
+
type: 'property',
|
|
72
|
+
},
|
|
50
73
|
],
|
|
51
74
|
|
|
52
75
|
provides: [
|
|
@@ -62,6 +85,14 @@ module.exports = {
|
|
|
62
85
|
},
|
|
63
86
|
],
|
|
64
87
|
|
|
88
|
+
refs: [
|
|
89
|
+
{
|
|
90
|
+
groupByDecorator: 'Ref',
|
|
91
|
+
sort: 'alphabetical',
|
|
92
|
+
type: 'property',
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
|
|
65
96
|
'sorted-methods': [
|
|
66
97
|
{
|
|
67
98
|
sort: 'alphabetical',
|
|
@@ -197,6 +228,11 @@ module.exports = {
|
|
|
197
228
|
sort: 'alphabetical',
|
|
198
229
|
type: 'property',
|
|
199
230
|
},
|
|
231
|
+
{
|
|
232
|
+
groupByDecorator: '(namespace',
|
|
233
|
+
sort: 'alphabetical',
|
|
234
|
+
type: 'property',
|
|
235
|
+
},
|
|
200
236
|
],
|
|
201
237
|
|
|
202
238
|
watches: [
|
|
@@ -215,12 +251,16 @@ module.exports = {
|
|
|
215
251
|
'[static-methods]',
|
|
216
252
|
'[static-async-methods]',
|
|
217
253
|
|
|
218
|
-
// properties
|
|
254
|
+
// decorated properties
|
|
219
255
|
'[vuex]',
|
|
220
256
|
'[injects]',
|
|
221
|
-
'[provides]',
|
|
222
257
|
'[props]',
|
|
258
|
+
'[models]',
|
|
259
|
+
'[provides]',
|
|
223
260
|
'[emits]',
|
|
261
|
+
'[refs]',
|
|
262
|
+
|
|
263
|
+
// properties
|
|
224
264
|
'[sorted-properties]',
|
|
225
265
|
'[arrow-function-properties]',
|
|
226
266
|
|