@rotki/eslint-plugin 0.6.1 → 1.0.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 +35 -5
- package/dist/index.mjs +192 -298
- package/package.json +23 -24
- package/dist/index.cjs +0 -813
- package/dist/index.d.cts +0 -108
package/dist/index.d.cts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { Rule, Linter } from 'eslint';
|
|
2
|
-
|
|
3
|
-
interface PluginRuleModule<TOptions extends readonly unknown[] = []> extends Rule.RuleModule {
|
|
4
|
-
defaultOptions: TOptions;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
type Options$1 = [{
|
|
8
|
-
legacy: boolean;
|
|
9
|
-
}];
|
|
10
|
-
|
|
11
|
-
type Options = [{
|
|
12
|
-
allowInference: boolean;
|
|
13
|
-
}];
|
|
14
|
-
|
|
15
|
-
declare const plugin: {
|
|
16
|
-
meta: {
|
|
17
|
-
name: string;
|
|
18
|
-
version: string;
|
|
19
|
-
};
|
|
20
|
-
rules: {
|
|
21
|
-
'consistent-ref-type-annotation': PluginRuleModule<Options>;
|
|
22
|
-
'no-deprecated-classes': PluginRuleModule<[]>;
|
|
23
|
-
'no-deprecated-components': PluginRuleModule<Options$1>;
|
|
24
|
-
'no-deprecated-props': PluginRuleModule<[]>;
|
|
25
|
-
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
26
|
-
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
declare const _default: {
|
|
31
|
-
meta: {
|
|
32
|
-
name: string;
|
|
33
|
-
version: string;
|
|
34
|
-
};
|
|
35
|
-
rules: {
|
|
36
|
-
'consistent-ref-type-annotation': PluginRuleModule<Options>;
|
|
37
|
-
'no-deprecated-classes': PluginRuleModule<[]>;
|
|
38
|
-
'no-deprecated-components': PluginRuleModule<Options$1>;
|
|
39
|
-
'no-deprecated-props': PluginRuleModule<[]>;
|
|
40
|
-
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
41
|
-
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
42
|
-
};
|
|
43
|
-
} & {
|
|
44
|
-
configs: {
|
|
45
|
-
recommended: {
|
|
46
|
-
plugins: {
|
|
47
|
-
[x: string]: {
|
|
48
|
-
meta: {
|
|
49
|
-
name: string;
|
|
50
|
-
version: string;
|
|
51
|
-
};
|
|
52
|
-
rules: {
|
|
53
|
-
'consistent-ref-type-annotation': PluginRuleModule<Options>;
|
|
54
|
-
'no-deprecated-classes': PluginRuleModule<[]>;
|
|
55
|
-
'no-deprecated-components': PluginRuleModule<Options$1>;
|
|
56
|
-
'no-deprecated-props': PluginRuleModule<[]>;
|
|
57
|
-
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
58
|
-
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
rules: {
|
|
63
|
-
[k: string]: number;
|
|
64
|
-
};
|
|
65
|
-
} | {
|
|
66
|
-
plugins: string[];
|
|
67
|
-
rules: {
|
|
68
|
-
[k: string]: number;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
'recommended-flat': {
|
|
72
|
-
plugins: {
|
|
73
|
-
[x: string]: {
|
|
74
|
-
meta: {
|
|
75
|
-
name: string;
|
|
76
|
-
version: string;
|
|
77
|
-
};
|
|
78
|
-
rules: {
|
|
79
|
-
'consistent-ref-type-annotation': PluginRuleModule<Options>;
|
|
80
|
-
'no-deprecated-classes': PluginRuleModule<[]>;
|
|
81
|
-
'no-deprecated-components': PluginRuleModule<Options$1>;
|
|
82
|
-
'no-deprecated-props': PluginRuleModule<[]>;
|
|
83
|
-
'no-dot-ts-imports': PluginRuleModule<[]>;
|
|
84
|
-
'no-legacy-library-import': PluginRuleModule<[]>;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
rules: {
|
|
89
|
-
[k: string]: number;
|
|
90
|
-
};
|
|
91
|
-
} | {
|
|
92
|
-
plugins: string[];
|
|
93
|
-
rules: {
|
|
94
|
-
[k: string]: number;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
type RuleDefinitions = typeof plugin['rules'];
|
|
101
|
-
type RuleOptions = {
|
|
102
|
-
[K in keyof RuleDefinitions]: RuleDefinitions[K]['defaultOptions'];
|
|
103
|
-
};
|
|
104
|
-
type Rules = {
|
|
105
|
-
[K in keyof RuleOptions]: Linter.RuleEntry<RuleOptions[K]>;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export { type RuleOptions, type Rules, _default as default };
|