@typestyles/eslint-plugin 0.4.3 → 0.4.5
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 +1 -1
- package/dist/index.cjs +824 -764
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +135 -133
- package/dist/index.d.ts +135 -133
- package/dist/index.js +796 -755
- package/dist/index.js.map +1 -1
- package/package.json +12 -13
package/dist/index.d.ts
CHANGED
|
@@ -1,162 +1,164 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
name: string;
|
|
1
|
+
//#region src/rules/no-default-scope-in-package.d.ts
|
|
2
|
+
export declare const noDefaultScopeInPackage: import("@typescript-eslint/utils/ts-eslint").RuleModule<"unscopedFactory" | "unscopedInPackage", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
3
|
+
name: string;
|
|
5
4
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/rules/no-duplicate-namespace.d.ts
|
|
7
|
+
export declare const noDuplicateNamespace: import("@typescript-eslint/utils/ts-eslint").RuleModule<"duplicateInFile" | "duplicateAcrossFiles", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/rules/no-invalid-unitless-value.d.ts
|
|
12
|
+
export declare const noInvalidUnitlessValue: import("@typescript-eslint/utils/ts-eslint").RuleModule<"bareNumberString" | "suspiciousUnitlessNumber", [{
|
|
13
|
+
checkSuspiciousUnitlessNumbers: boolean;
|
|
14
|
+
}], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/rules/no-removed-public-classname.d.ts
|
|
19
|
+
type RuleOptions = [{
|
|
20
|
+
snapshotFile?: string;
|
|
21
|
+
rootDir?: string;
|
|
22
|
+
}?];
|
|
23
|
+
export declare const noRemovedPublicClassname: import("@typescript-eslint/utils/ts-eslint").RuleModule<"removed", RuleOptions, unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
24
|
+
name: string;
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/rules/no-shorthand-longhand-conflict.d.ts
|
|
28
|
+
export declare const noShorthandLonghandConflict: import("@typescript-eslint/utils/ts-eslint").RuleModule<"conflict", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
29
|
+
name: string;
|
|
9
30
|
};
|
|
10
|
-
|
|
11
|
-
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/index.d.ts
|
|
33
|
+
export declare const rules: {
|
|
34
|
+
'no-default-scope-in-package': import("@typescript-eslint/utils/ts-eslint").RuleModule<"unscopedFactory" | "unscopedInPackage", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
35
|
+
name: string;
|
|
36
|
+
};
|
|
37
|
+
'no-shorthand-longhand-conflict': import("@typescript-eslint/utils/ts-eslint").RuleModule<"conflict", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
38
|
+
name: string;
|
|
39
|
+
};
|
|
40
|
+
'no-invalid-unitless-value': import("@typescript-eslint/utils/ts-eslint").RuleModule<"bareNumberString" | "suspiciousUnitlessNumber", [{
|
|
12
41
|
checkSuspiciousUnitlessNumbers: boolean;
|
|
13
|
-
}], unknown,
|
|
42
|
+
}], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
14
43
|
name: string;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
type RuleOptions = [
|
|
18
|
-
{
|
|
19
|
-
snapshotFile?: string;
|
|
20
|
-
rootDir?: string;
|
|
21
|
-
}?
|
|
22
|
-
];
|
|
23
|
-
declare const noRemovedPublicClassname: _typescript_eslint_utils_ts_eslint.RuleModule<"removed", RuleOptions, unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
44
|
+
};
|
|
45
|
+
'no-duplicate-namespace': import("@typescript-eslint/utils/ts-eslint").RuleModule<"duplicateInFile" | "duplicateAcrossFiles", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
24
46
|
name: string;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
|
|
47
|
+
};
|
|
48
|
+
'no-removed-public-classname': import("@typescript-eslint/utils/ts-eslint").RuleModule<"removed", [({
|
|
49
|
+
snapshotFile?: string;
|
|
50
|
+
rootDir?: string;
|
|
51
|
+
} | undefined)?], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
28
52
|
name: string;
|
|
53
|
+
};
|
|
29
54
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
55
|
+
declare const plugin: {
|
|
56
|
+
meta: {
|
|
57
|
+
name: string;
|
|
58
|
+
version: string;
|
|
59
|
+
};
|
|
60
|
+
rules: {
|
|
61
|
+
'no-default-scope-in-package': import("@typescript-eslint/utils/ts-eslint").RuleModule<"unscopedFactory" | "unscopedInPackage", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
62
|
+
name: string;
|
|
34
63
|
};
|
|
35
|
-
'no-shorthand-longhand-conflict':
|
|
36
|
-
|
|
64
|
+
'no-shorthand-longhand-conflict': import("@typescript-eslint/utils/ts-eslint").RuleModule<"conflict", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
65
|
+
name: string;
|
|
37
66
|
};
|
|
38
|
-
'no-invalid-unitless-value':
|
|
39
|
-
|
|
40
|
-
}], unknown,
|
|
41
|
-
|
|
67
|
+
'no-invalid-unitless-value': import("@typescript-eslint/utils/ts-eslint").RuleModule<"bareNumberString" | "suspiciousUnitlessNumber", [{
|
|
68
|
+
checkSuspiciousUnitlessNumbers: boolean;
|
|
69
|
+
}], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
70
|
+
name: string;
|
|
42
71
|
};
|
|
43
|
-
'no-duplicate-namespace':
|
|
44
|
-
|
|
72
|
+
'no-duplicate-namespace': import("@typescript-eslint/utils/ts-eslint").RuleModule<"duplicateInFile" | "duplicateAcrossFiles", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
73
|
+
name: string;
|
|
45
74
|
};
|
|
46
|
-
'no-removed-public-classname':
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
} | undefined)?], unknown,
|
|
50
|
-
|
|
75
|
+
'no-removed-public-classname': import("@typescript-eslint/utils/ts-eslint").RuleModule<"removed", [({
|
|
76
|
+
snapshotFile?: string;
|
|
77
|
+
rootDir?: string;
|
|
78
|
+
} | undefined)?], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
79
|
+
name: string;
|
|
51
80
|
};
|
|
81
|
+
};
|
|
52
82
|
};
|
|
53
|
-
|
|
54
|
-
declare const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
name: string;
|
|
83
|
+
/** Flat-config preset for TypeStyles projects. */
|
|
84
|
+
export declare const configs: {
|
|
85
|
+
recommended: {
|
|
86
|
+
plugins: {
|
|
87
|
+
'@typestyles': {
|
|
88
|
+
meta: {
|
|
89
|
+
name: string;
|
|
90
|
+
version: string;
|
|
62
91
|
};
|
|
63
|
-
|
|
92
|
+
rules: {
|
|
93
|
+
'no-default-scope-in-package': import("@typescript-eslint/utils/ts-eslint").RuleModule<"unscopedFactory" | "unscopedInPackage", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
64
94
|
name: string;
|
|
65
|
-
|
|
66
|
-
|
|
95
|
+
};
|
|
96
|
+
'no-shorthand-longhand-conflict': import("@typescript-eslint/utils/ts-eslint").RuleModule<"conflict", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
97
|
+
name: string;
|
|
98
|
+
};
|
|
99
|
+
'no-invalid-unitless-value': import("@typescript-eslint/utils/ts-eslint").RuleModule<"bareNumberString" | "suspiciousUnitlessNumber", [{
|
|
67
100
|
checkSuspiciousUnitlessNumbers: boolean;
|
|
68
|
-
|
|
101
|
+
}], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
69
102
|
name: string;
|
|
70
|
-
|
|
71
|
-
|
|
103
|
+
};
|
|
104
|
+
'no-duplicate-namespace': import("@typescript-eslint/utils/ts-eslint").RuleModule<"duplicateInFile" | "duplicateAcrossFiles", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
72
105
|
name: string;
|
|
73
|
-
|
|
74
|
-
|
|
106
|
+
};
|
|
107
|
+
'no-removed-public-classname': import("@typescript-eslint/utils/ts-eslint").RuleModule<"removed", [({
|
|
75
108
|
snapshotFile?: string;
|
|
76
109
|
rootDir?: string;
|
|
77
|
-
|
|
110
|
+
} | undefined)?], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
78
111
|
name: string;
|
|
112
|
+
};
|
|
79
113
|
};
|
|
114
|
+
};
|
|
80
115
|
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
plugins: {
|
|
86
|
-
'@typestyles': {
|
|
87
|
-
meta: {
|
|
88
|
-
name: string;
|
|
89
|
-
version: string;
|
|
90
|
-
};
|
|
91
|
-
rules: {
|
|
92
|
-
'no-default-scope-in-package': _typescript_eslint_utils_ts_eslint.RuleModule<"unscopedFactory" | "unscopedInPackage", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
93
|
-
name: string;
|
|
94
|
-
};
|
|
95
|
-
'no-shorthand-longhand-conflict': _typescript_eslint_utils_ts_eslint.RuleModule<"conflict", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
96
|
-
name: string;
|
|
97
|
-
};
|
|
98
|
-
'no-invalid-unitless-value': _typescript_eslint_utils_ts_eslint.RuleModule<"bareNumberString" | "suspiciousUnitlessNumber", [{
|
|
99
|
-
checkSuspiciousUnitlessNumbers: boolean;
|
|
100
|
-
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
101
|
-
name: string;
|
|
102
|
-
};
|
|
103
|
-
'no-duplicate-namespace': _typescript_eslint_utils_ts_eslint.RuleModule<"duplicateInFile" | "duplicateAcrossFiles", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
104
|
-
name: string;
|
|
105
|
-
};
|
|
106
|
-
'no-removed-public-classname': _typescript_eslint_utils_ts_eslint.RuleModule<"removed", [({
|
|
107
|
-
snapshotFile?: string;
|
|
108
|
-
rootDir?: string;
|
|
109
|
-
} | undefined)?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
110
|
-
name: string;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
rules: {
|
|
116
|
-
'@typestyles/no-shorthand-longhand-conflict': string;
|
|
117
|
-
'@typestyles/no-invalid-unitless-value': string;
|
|
118
|
-
'@typestyles/no-duplicate-namespace': string;
|
|
119
|
-
};
|
|
116
|
+
rules: {
|
|
117
|
+
'@typestyles/no-shorthand-longhand-conflict': string;
|
|
118
|
+
'@typestyles/no-invalid-unitless-value': string;
|
|
119
|
+
'@typestyles/no-duplicate-namespace': string;
|
|
120
120
|
};
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
rules: {
|
|
130
|
-
'no-default-scope-in-package': _typescript_eslint_utils_ts_eslint.RuleModule<"unscopedFactory" | "unscopedInPackage", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
131
|
-
name: string;
|
|
132
|
-
};
|
|
133
|
-
'no-shorthand-longhand-conflict': _typescript_eslint_utils_ts_eslint.RuleModule<"conflict", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
134
|
-
name: string;
|
|
135
|
-
};
|
|
136
|
-
'no-invalid-unitless-value': _typescript_eslint_utils_ts_eslint.RuleModule<"bareNumberString" | "suspiciousUnitlessNumber", [{
|
|
137
|
-
checkSuspiciousUnitlessNumbers: boolean;
|
|
138
|
-
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
139
|
-
name: string;
|
|
140
|
-
};
|
|
141
|
-
'no-duplicate-namespace': _typescript_eslint_utils_ts_eslint.RuleModule<"duplicateInFile" | "duplicateAcrossFiles", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
142
|
-
name: string;
|
|
143
|
-
};
|
|
144
|
-
'no-removed-public-classname': _typescript_eslint_utils_ts_eslint.RuleModule<"removed", [({
|
|
145
|
-
snapshotFile?: string;
|
|
146
|
-
rootDir?: string;
|
|
147
|
-
} | undefined)?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
148
|
-
name: string;
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
};
|
|
121
|
+
};
|
|
122
|
+
/** Preset for publishable packages — adds `no-default-scope-in-package`. */
|
|
123
|
+
package: {
|
|
124
|
+
plugins: {
|
|
125
|
+
'@typestyles': {
|
|
126
|
+
meta: {
|
|
127
|
+
name: string;
|
|
128
|
+
version: string;
|
|
152
129
|
};
|
|
153
130
|
rules: {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
131
|
+
'no-default-scope-in-package': import("@typescript-eslint/utils/ts-eslint").RuleModule<"unscopedFactory" | "unscopedInPackage", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
132
|
+
name: string;
|
|
133
|
+
};
|
|
134
|
+
'no-shorthand-longhand-conflict': import("@typescript-eslint/utils/ts-eslint").RuleModule<"conflict", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
135
|
+
name: string;
|
|
136
|
+
};
|
|
137
|
+
'no-invalid-unitless-value': import("@typescript-eslint/utils/ts-eslint").RuleModule<"bareNumberString" | "suspiciousUnitlessNumber", [{
|
|
138
|
+
checkSuspiciousUnitlessNumbers: boolean;
|
|
139
|
+
}], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
140
|
+
name: string;
|
|
141
|
+
};
|
|
142
|
+
'no-duplicate-namespace': import("@typescript-eslint/utils/ts-eslint").RuleModule<"duplicateInFile" | "duplicateAcrossFiles", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
143
|
+
name: string;
|
|
144
|
+
};
|
|
145
|
+
'no-removed-public-classname': import("@typescript-eslint/utils/ts-eslint").RuleModule<"removed", [({
|
|
146
|
+
snapshotFile?: string;
|
|
147
|
+
rootDir?: string;
|
|
148
|
+
} | undefined)?], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
149
|
+
name: string;
|
|
150
|
+
};
|
|
158
151
|
};
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
rules: {
|
|
155
|
+
'@typestyles/no-shorthand-longhand-conflict': string;
|
|
156
|
+
'@typestyles/no-invalid-unitless-value': string;
|
|
157
|
+
'@typestyles/no-duplicate-namespace': string;
|
|
158
|
+
'@typestyles/no-default-scope-in-package': string;
|
|
159
159
|
};
|
|
160
|
+
};
|
|
160
161
|
};
|
|
161
|
-
|
|
162
|
-
export {
|
|
162
|
+
//#endregion
|
|
163
|
+
export { plugin as default };
|
|
164
|
+
//# sourceMappingURL=index.d.ts.map
|