@lvce-editor/eslint-config 1.31.0 → 1.33.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/index.js +1 -0
- package/package.json +6 -6
- package/rules.js +22 -1
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"description": "",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@eslint/css": "^0.4.0",
|
|
23
|
-
"@eslint/js": "^9.
|
|
23
|
+
"@eslint/js": "^9.22.0",
|
|
24
24
|
"@eslint/json": "^0.10.0",
|
|
25
|
-
"@eslint/markdown": "^6.
|
|
25
|
+
"@eslint/markdown": "^6.3.0",
|
|
26
26
|
"eslint-plugin-jest": "^28.11.0",
|
|
27
27
|
"eslint-plugin-n": "^17.16.2",
|
|
28
|
-
"eslint-plugin-package-json": "^0.26.
|
|
29
|
-
"eslint-plugin-perfectionist": "^4.
|
|
28
|
+
"eslint-plugin-package-json": "^0.26.3",
|
|
29
|
+
"eslint-plugin-perfectionist": "^4.10.1",
|
|
30
30
|
"eslint-plugin-project-structure": "^3.13.2",
|
|
31
31
|
"eslint-plugin-unicorn": "^57.0.0",
|
|
32
32
|
"eslint-plugin-yml": "^1.17.0",
|
|
33
|
-
"typescript-eslint": "^8.26.
|
|
33
|
+
"typescript-eslint": "^8.26.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"eslint": ">= 9"
|
package/rules.js
CHANGED
|
@@ -171,6 +171,25 @@ var create8 = (context) => {
|
|
|
171
171
|
return create(context, "exactOptionalPropertyTypes");
|
|
172
172
|
};
|
|
173
173
|
|
|
174
|
+
// src/tsconfig-erasable-syntax-only.ts
|
|
175
|
+
var tsconfig_erasable_syntax_only_exports = {};
|
|
176
|
+
__export(tsconfig_erasable_syntax_only_exports, {
|
|
177
|
+
create: () => create9,
|
|
178
|
+
meta: () => meta8
|
|
179
|
+
});
|
|
180
|
+
var meta8 = {
|
|
181
|
+
type: "problem",
|
|
182
|
+
docs: {
|
|
183
|
+
description: "Enforce erasableSyntaxOnly"
|
|
184
|
+
},
|
|
185
|
+
messages: {
|
|
186
|
+
erasableSyntaxOnly: "erasableSyntaxOnly rule should be enabled"
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
var create9 = (context) => {
|
|
190
|
+
return create(context, "erasableSyntaxOnly");
|
|
191
|
+
};
|
|
192
|
+
|
|
174
193
|
// src/index.ts
|
|
175
194
|
var plugin = {
|
|
176
195
|
meta: {
|
|
@@ -184,7 +203,8 @@ var plugin = {
|
|
|
184
203
|
"allow-importing-ts-extensions": tsconfig_allow_importing_ts_extensions_exports,
|
|
185
204
|
"no-implicit-any": tsconfig_no_implicit_any_exports,
|
|
186
205
|
"assume-changes-only-affect-direct-dependenices": tsconfig_assume_changes_only_affect_direct_dependencies_exports,
|
|
187
|
-
"exact-optional-property-types": tsconfig_exact_optional_property_types_exports
|
|
206
|
+
"exact-optional-property-types": tsconfig_exact_optional_property_types_exports,
|
|
207
|
+
"erasable-syntax-only": tsconfig_erasable_syntax_only_exports
|
|
188
208
|
},
|
|
189
209
|
configs: {}
|
|
190
210
|
};
|
|
@@ -209,6 +229,7 @@ var recommended = [
|
|
|
209
229
|
"tsconfig/no-unchecked-side-effect-imports": "error",
|
|
210
230
|
"tsconfig/force-consistent-casing-in-file-names": "error",
|
|
211
231
|
"tsconfig/strict": "error",
|
|
232
|
+
"tsconfig/erasable-syntax-only": "off",
|
|
212
233
|
"tsconfig/allow-importing-ts-extensions": "error",
|
|
213
234
|
"tsconfig/no-implicit-any": "error",
|
|
214
235
|
"tsconfig/assume-changes-only-affect-direct-dependenices": "error",
|