@rotki/eslint-plugin 1.3.2 → 1.5.0
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/README.md +3 -15
- package/dist/index.d.mts +31 -9
- package/dist/index.d.ts +31 -9
- package/dist/index.mjs +616 -305
- package/package.json +27 -26
package/README.md
CHANGED
|
@@ -38,11 +38,9 @@ export default [
|
|
|
38
38
|
|
|
39
39
|
Or configure individual rules:
|
|
40
40
|
|
|
41
|
-
<!-- eslint-disable perfectionist/sort-imports -->
|
|
42
|
-
|
|
43
41
|
```js
|
|
44
|
-
import * as jsoncParser from 'jsonc-eslint-parser';
|
|
45
42
|
import rotkiPlugin from '@rotki/eslint-plugin';
|
|
43
|
+
import * as jsoncParser from 'jsonc-eslint-parser';
|
|
46
44
|
|
|
47
45
|
export default [
|
|
48
46
|
{
|
|
@@ -62,20 +60,10 @@ export default [
|
|
|
62
60
|
];
|
|
63
61
|
```
|
|
64
62
|
|
|
65
|
-
<!-- eslint-enable perfectionist/sort-imports -->
|
|
66
|
-
|
|
67
63
|
## Rules
|
|
68
64
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
| [consistent-ref-type-annotation](https://rotki.github.io/eslint-plugin/rules/consistent-ref-type-annotation) | Ensures consistent type annotation position for ref, computed assignments | :black_nib: |
|
|
72
|
-
| [max-dependencies](https://rotki.github.io/eslint-plugin/rules/max-dependencies) | Enforce a maximum number of dependencies per file | |
|
|
73
|
-
| [no-deprecated-classes](https://rotki.github.io/eslint-plugin/rules/no-deprecated-classes) | Disallow deprecated vuetify css classes | :black_nib: |
|
|
74
|
-
| [no-deprecated-components](https://rotki.github.io/eslint-plugin/rules/no-deprecated-components) | Disallow deprecated components | :black_nib: |
|
|
75
|
-
| [no-deprecated-props](https://rotki.github.io/eslint-plugin/rules/no-deprecated-props) | Replace deprecated props with their replacements | :black_nib: |
|
|
76
|
-
| [no-dot-ts-imports](https://rotki.github.io/eslint-plugin/rules/no-dot-ts-imports) | Disallow .ts extension in import statements | :black_nib: |
|
|
77
|
-
| [no-legacy-library-import](https://rotki.github.io/eslint-plugin/rules/no-legacy-library-import) | Disallow imports from @rotki/ui-library-compat | :black_nib: |
|
|
78
|
-
| [no-unused-i18n-keys](https://rotki.github.io/eslint-plugin/rules/no-unused-i18n-keys) | Disallow unused i18n keys in locale files | :black_nib: |
|
|
65
|
+
See the [full list of available rules](https://rotki.github.io/eslint-plugin/rules/),
|
|
66
|
+
including which are enabled by the `recommended` preset and which are auto-fixable.
|
|
79
67
|
|
|
80
68
|
## Documentation
|
|
81
69
|
|
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ interface PluginRuleModule<TOptions extends readonly unknown[] = []> extends Rul
|
|
|
4
4
|
defaultOptions: TOptions;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
type Options$
|
|
7
|
+
type Options$7 = [
|
|
8
8
|
{
|
|
9
9
|
extensions: string[];
|
|
10
10
|
ignoreKeys: string[];
|
|
@@ -12,6 +12,11 @@ type Options$6 = [
|
|
|
12
12
|
}
|
|
13
13
|
];
|
|
14
14
|
|
|
15
|
+
interface Options$6 {
|
|
16
|
+
factories: string[];
|
|
17
|
+
testFilePattern: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
15
20
|
type Options$5 = [{
|
|
16
21
|
legacy: boolean;
|
|
17
22
|
}];
|
|
@@ -27,6 +32,7 @@ type Options$3 = [{
|
|
|
27
32
|
|
|
28
33
|
type Options$2 = [{
|
|
29
34
|
autofix?: boolean;
|
|
35
|
+
writablePrefixes?: string[];
|
|
30
36
|
}];
|
|
31
37
|
|
|
32
38
|
type Options$1 = [{
|
|
@@ -57,7 +63,9 @@ declare const plugin: {
|
|
|
57
63
|
'no-deprecated-props': PluginRuleModule<[]>;
|
|
58
64
|
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
59
65
|
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
60
|
-
'no-
|
|
66
|
+
'no-redundant-flex-row': PluginRuleModule<[]>;
|
|
67
|
+
'no-shared-pinia': PluginRuleModule<[Options$6]>;
|
|
68
|
+
'no-unused-i18n-keys': PluginRuleModule<Options$7>;
|
|
61
69
|
'require-jsdoc-on-composable-options': PluginRuleModule<[]>;
|
|
62
70
|
};
|
|
63
71
|
};
|
|
@@ -82,7 +90,9 @@ declare const _default: {
|
|
|
82
90
|
'no-deprecated-props': PluginRuleModule<[]>;
|
|
83
91
|
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
84
92
|
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
85
|
-
'no-
|
|
93
|
+
'no-redundant-flex-row': PluginRuleModule<[]>;
|
|
94
|
+
'no-shared-pinia': PluginRuleModule<[Options$6]>;
|
|
95
|
+
'no-unused-i18n-keys': PluginRuleModule<Options$7>;
|
|
86
96
|
'require-jsdoc-on-composable-options': PluginRuleModule<[]>;
|
|
87
97
|
};
|
|
88
98
|
} & {
|
|
@@ -109,7 +119,9 @@ declare const _default: {
|
|
|
109
119
|
'no-deprecated-props': PluginRuleModule<[]>;
|
|
110
120
|
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
111
121
|
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
112
|
-
'no-
|
|
122
|
+
'no-redundant-flex-row': PluginRuleModule<[]>;
|
|
123
|
+
'no-shared-pinia': PluginRuleModule<[Options$6]>;
|
|
124
|
+
'no-unused-i18n-keys': PluginRuleModule<Options$7>;
|
|
113
125
|
'require-jsdoc-on-composable-options': PluginRuleModule<[]>;
|
|
114
126
|
};
|
|
115
127
|
};
|
|
@@ -145,7 +157,9 @@ declare const _default: {
|
|
|
145
157
|
'no-deprecated-props': PluginRuleModule<[]>;
|
|
146
158
|
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
147
159
|
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
148
|
-
'no-
|
|
160
|
+
'no-redundant-flex-row': PluginRuleModule<[]>;
|
|
161
|
+
'no-shared-pinia': PluginRuleModule<[Options$6]>;
|
|
162
|
+
'no-unused-i18n-keys': PluginRuleModule<Options$7>;
|
|
149
163
|
'require-jsdoc-on-composable-options': PluginRuleModule<[]>;
|
|
150
164
|
};
|
|
151
165
|
};
|
|
@@ -181,7 +195,9 @@ declare const _default: {
|
|
|
181
195
|
'no-deprecated-props': PluginRuleModule<[]>;
|
|
182
196
|
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
183
197
|
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
184
|
-
'no-
|
|
198
|
+
'no-redundant-flex-row': PluginRuleModule<[]>;
|
|
199
|
+
'no-shared-pinia': PluginRuleModule<[Options$6]>;
|
|
200
|
+
'no-unused-i18n-keys': PluginRuleModule<Options$7>;
|
|
185
201
|
'require-jsdoc-on-composable-options': PluginRuleModule<[]>;
|
|
186
202
|
};
|
|
187
203
|
};
|
|
@@ -217,7 +233,9 @@ declare const _default: {
|
|
|
217
233
|
'no-deprecated-props': PluginRuleModule<[]>;
|
|
218
234
|
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
219
235
|
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
220
|
-
'no-
|
|
236
|
+
'no-redundant-flex-row': PluginRuleModule<[]>;
|
|
237
|
+
'no-shared-pinia': PluginRuleModule<[Options$6]>;
|
|
238
|
+
'no-unused-i18n-keys': PluginRuleModule<Options$7>;
|
|
221
239
|
'require-jsdoc-on-composable-options': PluginRuleModule<[]>;
|
|
222
240
|
};
|
|
223
241
|
};
|
|
@@ -253,7 +271,9 @@ declare const _default: {
|
|
|
253
271
|
'no-deprecated-props': PluginRuleModule<[]>;
|
|
254
272
|
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
255
273
|
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
256
|
-
'no-
|
|
274
|
+
'no-redundant-flex-row': PluginRuleModule<[]>;
|
|
275
|
+
'no-shared-pinia': PluginRuleModule<[Options$6]>;
|
|
276
|
+
'no-unused-i18n-keys': PluginRuleModule<Options$7>;
|
|
257
277
|
'require-jsdoc-on-composable-options': PluginRuleModule<[]>;
|
|
258
278
|
};
|
|
259
279
|
};
|
|
@@ -289,7 +309,9 @@ declare const _default: {
|
|
|
289
309
|
'no-deprecated-props': PluginRuleModule<[]>;
|
|
290
310
|
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
291
311
|
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
292
|
-
'no-
|
|
312
|
+
'no-redundant-flex-row': PluginRuleModule<[]>;
|
|
313
|
+
'no-shared-pinia': PluginRuleModule<[Options$6]>;
|
|
314
|
+
'no-unused-i18n-keys': PluginRuleModule<Options$7>;
|
|
293
315
|
'require-jsdoc-on-composable-options': PluginRuleModule<[]>;
|
|
294
316
|
};
|
|
295
317
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ interface PluginRuleModule<TOptions extends readonly unknown[] = []> extends Rul
|
|
|
4
4
|
defaultOptions: TOptions;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
type Options$
|
|
7
|
+
type Options$7 = [
|
|
8
8
|
{
|
|
9
9
|
extensions: string[];
|
|
10
10
|
ignoreKeys: string[];
|
|
@@ -12,6 +12,11 @@ type Options$6 = [
|
|
|
12
12
|
}
|
|
13
13
|
];
|
|
14
14
|
|
|
15
|
+
interface Options$6 {
|
|
16
|
+
factories: string[];
|
|
17
|
+
testFilePattern: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
15
20
|
type Options$5 = [{
|
|
16
21
|
legacy: boolean;
|
|
17
22
|
}];
|
|
@@ -27,6 +32,7 @@ type Options$3 = [{
|
|
|
27
32
|
|
|
28
33
|
type Options$2 = [{
|
|
29
34
|
autofix?: boolean;
|
|
35
|
+
writablePrefixes?: string[];
|
|
30
36
|
}];
|
|
31
37
|
|
|
32
38
|
type Options$1 = [{
|
|
@@ -57,7 +63,9 @@ declare const plugin: {
|
|
|
57
63
|
'no-deprecated-props': PluginRuleModule<[]>;
|
|
58
64
|
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
59
65
|
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
60
|
-
'no-
|
|
66
|
+
'no-redundant-flex-row': PluginRuleModule<[]>;
|
|
67
|
+
'no-shared-pinia': PluginRuleModule<[Options$6]>;
|
|
68
|
+
'no-unused-i18n-keys': PluginRuleModule<Options$7>;
|
|
61
69
|
'require-jsdoc-on-composable-options': PluginRuleModule<[]>;
|
|
62
70
|
};
|
|
63
71
|
};
|
|
@@ -82,7 +90,9 @@ declare const _default: {
|
|
|
82
90
|
'no-deprecated-props': PluginRuleModule<[]>;
|
|
83
91
|
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
84
92
|
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
85
|
-
'no-
|
|
93
|
+
'no-redundant-flex-row': PluginRuleModule<[]>;
|
|
94
|
+
'no-shared-pinia': PluginRuleModule<[Options$6]>;
|
|
95
|
+
'no-unused-i18n-keys': PluginRuleModule<Options$7>;
|
|
86
96
|
'require-jsdoc-on-composable-options': PluginRuleModule<[]>;
|
|
87
97
|
};
|
|
88
98
|
} & {
|
|
@@ -109,7 +119,9 @@ declare const _default: {
|
|
|
109
119
|
'no-deprecated-props': PluginRuleModule<[]>;
|
|
110
120
|
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
111
121
|
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
112
|
-
'no-
|
|
122
|
+
'no-redundant-flex-row': PluginRuleModule<[]>;
|
|
123
|
+
'no-shared-pinia': PluginRuleModule<[Options$6]>;
|
|
124
|
+
'no-unused-i18n-keys': PluginRuleModule<Options$7>;
|
|
113
125
|
'require-jsdoc-on-composable-options': PluginRuleModule<[]>;
|
|
114
126
|
};
|
|
115
127
|
};
|
|
@@ -145,7 +157,9 @@ declare const _default: {
|
|
|
145
157
|
'no-deprecated-props': PluginRuleModule<[]>;
|
|
146
158
|
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
147
159
|
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
148
|
-
'no-
|
|
160
|
+
'no-redundant-flex-row': PluginRuleModule<[]>;
|
|
161
|
+
'no-shared-pinia': PluginRuleModule<[Options$6]>;
|
|
162
|
+
'no-unused-i18n-keys': PluginRuleModule<Options$7>;
|
|
149
163
|
'require-jsdoc-on-composable-options': PluginRuleModule<[]>;
|
|
150
164
|
};
|
|
151
165
|
};
|
|
@@ -181,7 +195,9 @@ declare const _default: {
|
|
|
181
195
|
'no-deprecated-props': PluginRuleModule<[]>;
|
|
182
196
|
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
183
197
|
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
184
|
-
'no-
|
|
198
|
+
'no-redundant-flex-row': PluginRuleModule<[]>;
|
|
199
|
+
'no-shared-pinia': PluginRuleModule<[Options$6]>;
|
|
200
|
+
'no-unused-i18n-keys': PluginRuleModule<Options$7>;
|
|
185
201
|
'require-jsdoc-on-composable-options': PluginRuleModule<[]>;
|
|
186
202
|
};
|
|
187
203
|
};
|
|
@@ -217,7 +233,9 @@ declare const _default: {
|
|
|
217
233
|
'no-deprecated-props': PluginRuleModule<[]>;
|
|
218
234
|
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
219
235
|
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
220
|
-
'no-
|
|
236
|
+
'no-redundant-flex-row': PluginRuleModule<[]>;
|
|
237
|
+
'no-shared-pinia': PluginRuleModule<[Options$6]>;
|
|
238
|
+
'no-unused-i18n-keys': PluginRuleModule<Options$7>;
|
|
221
239
|
'require-jsdoc-on-composable-options': PluginRuleModule<[]>;
|
|
222
240
|
};
|
|
223
241
|
};
|
|
@@ -253,7 +271,9 @@ declare const _default: {
|
|
|
253
271
|
'no-deprecated-props': PluginRuleModule<[]>;
|
|
254
272
|
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
255
273
|
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
256
|
-
'no-
|
|
274
|
+
'no-redundant-flex-row': PluginRuleModule<[]>;
|
|
275
|
+
'no-shared-pinia': PluginRuleModule<[Options$6]>;
|
|
276
|
+
'no-unused-i18n-keys': PluginRuleModule<Options$7>;
|
|
257
277
|
'require-jsdoc-on-composable-options': PluginRuleModule<[]>;
|
|
258
278
|
};
|
|
259
279
|
};
|
|
@@ -289,7 +309,9 @@ declare const _default: {
|
|
|
289
309
|
'no-deprecated-props': PluginRuleModule<[]>;
|
|
290
310
|
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
291
311
|
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
292
|
-
'no-
|
|
312
|
+
'no-redundant-flex-row': PluginRuleModule<[]>;
|
|
313
|
+
'no-shared-pinia': PluginRuleModule<[Options$6]>;
|
|
314
|
+
'no-unused-i18n-keys': PluginRuleModule<Options$7>;
|
|
293
315
|
'require-jsdoc-on-composable-options': PluginRuleModule<[]>;
|
|
294
316
|
};
|
|
295
317
|
};
|