@lvce-editor/eslint-config 1.22.0 → 1.23.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/package.json +4 -4
- package/rules.js +27 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"@eslint/json": "^0.10.0",
|
|
25
25
|
"eslint-plugin-jest": "^28.11.0",
|
|
26
26
|
"eslint-plugin-n": "^17.15.1",
|
|
27
|
-
"eslint-plugin-package-json": "^0.
|
|
28
|
-
"eslint-plugin-perfectionist": "^4.
|
|
27
|
+
"eslint-plugin-package-json": "^0.23.1",
|
|
28
|
+
"eslint-plugin-perfectionist": "^4.8.0",
|
|
29
29
|
"eslint-plugin-project-structure": "^3.13.2",
|
|
30
30
|
"eslint-plugin-unicorn": "^56.0.1",
|
|
31
|
-
"typescript-eslint": "^8.
|
|
31
|
+
"typescript-eslint": "^8.23.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"eslint": ">= 9"
|
package/rules.js
CHANGED
|
@@ -95,13 +95,32 @@ var create4 = (context) => {
|
|
|
95
95
|
return create(context, "noUncheckedSideEffectImports");
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
-
// src/tsconfig-
|
|
99
|
-
var
|
|
100
|
-
__export(
|
|
98
|
+
// src/tsconfig-no-implicit-any.ts
|
|
99
|
+
var tsconfig_no_implicit_any_exports = {};
|
|
100
|
+
__export(tsconfig_no_implicit_any_exports, {
|
|
101
101
|
create: () => create5,
|
|
102
102
|
meta: () => meta4
|
|
103
103
|
});
|
|
104
104
|
var meta4 = {
|
|
105
|
+
type: "problem",
|
|
106
|
+
docs: {
|
|
107
|
+
description: "Disallow implicit any"
|
|
108
|
+
},
|
|
109
|
+
messages: {
|
|
110
|
+
noImplicitAny: "noImplicitAny rule should be enabled"
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
var create5 = (context) => {
|
|
114
|
+
return create(context, "noImplicitAny");
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
// src/tsconfig-strict.ts
|
|
118
|
+
var tsconfig_strict_exports = {};
|
|
119
|
+
__export(tsconfig_strict_exports, {
|
|
120
|
+
create: () => create6,
|
|
121
|
+
meta: () => meta5
|
|
122
|
+
});
|
|
123
|
+
var meta5 = {
|
|
105
124
|
type: "problem",
|
|
106
125
|
docs: {
|
|
107
126
|
description: "Ensure that the strict mode is enabled"
|
|
@@ -110,7 +129,7 @@ var meta4 = {
|
|
|
110
129
|
strict: "strict mode should be enabled"
|
|
111
130
|
}
|
|
112
131
|
};
|
|
113
|
-
var
|
|
132
|
+
var create6 = (context) => {
|
|
114
133
|
return create(context, "strict");
|
|
115
134
|
};
|
|
116
135
|
|
|
@@ -124,7 +143,8 @@ var plugin = {
|
|
|
124
143
|
"no-unchecked-side-effect-imports": tsconfig_no_unchecked_side_effect_imports_exports,
|
|
125
144
|
"force-consistent-casing-in-file-names": tsconfig_force_consistent_casing_in_file_names_exports,
|
|
126
145
|
strict: tsconfig_strict_exports,
|
|
127
|
-
"allow-importing-ts-extensions": tsconfig_allow_importing_ts_extensions_exports
|
|
146
|
+
"allow-importing-ts-extensions": tsconfig_allow_importing_ts_extensions_exports,
|
|
147
|
+
"no-implicit-any": tsconfig_no_implicit_any_exports
|
|
128
148
|
},
|
|
129
149
|
configs: {}
|
|
130
150
|
};
|
|
@@ -149,7 +169,8 @@ var recommended = [
|
|
|
149
169
|
"tsconfig/no-unchecked-side-effect-imports": "error",
|
|
150
170
|
"tsconfig/force-consistent-casing-in-file-names": "error",
|
|
151
171
|
"tsconfig/strict": "error",
|
|
152
|
-
"tsconfig/allow-importing-ts-extensions": "error"
|
|
172
|
+
"tsconfig/allow-importing-ts-extensions": "error",
|
|
173
|
+
"tsconfig/no-implicit-any": "error"
|
|
153
174
|
}
|
|
154
175
|
}
|
|
155
176
|
];
|