@lvce-editor/eslint-config 1.27.0 → 1.29.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 +2 -1
- package/package.json +3 -2
- package/rules.js +23 -2
package/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import tseslint from 'typescript-eslint'
|
|
|
10
10
|
import packageJson from 'eslint-plugin-package-json/configs/recommended'
|
|
11
11
|
import eslintPluginUnicorn from 'eslint-plugin-unicorn'
|
|
12
12
|
import eslintPluginYml from 'eslint-plugin-yml'
|
|
13
|
-
|
|
13
|
+
import markdown from '@eslint/markdown'
|
|
14
14
|
|
|
15
15
|
const uri = './rules.js'
|
|
16
16
|
const tsconfigPlugin = (await import(uri)).default
|
|
@@ -183,6 +183,7 @@ const defaultConfig = tseslint.config(
|
|
|
183
183
|
'@typescript-eslint/no-floating-promises': 'off',
|
|
184
184
|
},
|
|
185
185
|
},
|
|
186
|
+
...markdown.configs.recommended,
|
|
186
187
|
)
|
|
187
188
|
|
|
188
189
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.29.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,8 +20,9 @@
|
|
|
20
20
|
"description": "",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@eslint/css": "^0.4.0",
|
|
23
|
-
"@eslint/js": "^9.
|
|
23
|
+
"@eslint/js": "^9.21.0",
|
|
24
24
|
"@eslint/json": "^0.10.0",
|
|
25
|
+
"@eslint/markdown": "^6.2.2",
|
|
25
26
|
"eslint-plugin-jest": "^28.11.0",
|
|
26
27
|
"eslint-plugin-n": "^17.15.1",
|
|
27
28
|
"eslint-plugin-package-json": "^0.26.0",
|
package/rules.js
CHANGED
|
@@ -152,6 +152,25 @@ var create7 = (context) => {
|
|
|
152
152
|
return create(context, "assumeChangesOnlyAffectDirectDependencies");
|
|
153
153
|
};
|
|
154
154
|
|
|
155
|
+
// src/tsconfig-exact-optional-property-types.ts
|
|
156
|
+
var tsconfig_exact_optional_property_types_exports = {};
|
|
157
|
+
__export(tsconfig_exact_optional_property_types_exports, {
|
|
158
|
+
create: () => create8,
|
|
159
|
+
meta: () => meta7
|
|
160
|
+
});
|
|
161
|
+
var meta7 = {
|
|
162
|
+
type: "problem",
|
|
163
|
+
docs: {
|
|
164
|
+
description: "Enforce exactOptionalPropertyTypes"
|
|
165
|
+
},
|
|
166
|
+
messages: {
|
|
167
|
+
exactOptionalPropertyTypes: "exactOptionalPropertyTypes rule should be enabled"
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
var create8 = (context) => {
|
|
171
|
+
return create(context, "exactOptionalPropertyTypes");
|
|
172
|
+
};
|
|
173
|
+
|
|
155
174
|
// src/index.ts
|
|
156
175
|
var plugin = {
|
|
157
176
|
meta: {
|
|
@@ -164,7 +183,8 @@ var plugin = {
|
|
|
164
183
|
strict: tsconfig_strict_exports,
|
|
165
184
|
"allow-importing-ts-extensions": tsconfig_allow_importing_ts_extensions_exports,
|
|
166
185
|
"no-implicit-any": tsconfig_no_implicit_any_exports,
|
|
167
|
-
"assume-changes-only-affect-direct-dependenices": tsconfig_assume_changes_only_affect_direct_dependencies_exports
|
|
186
|
+
"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
|
|
168
188
|
},
|
|
169
189
|
configs: {}
|
|
170
190
|
};
|
|
@@ -191,7 +211,8 @@ var recommended = [
|
|
|
191
211
|
"tsconfig/strict": "error",
|
|
192
212
|
"tsconfig/allow-importing-ts-extensions": "error",
|
|
193
213
|
"tsconfig/no-implicit-any": "error",
|
|
194
|
-
"tsconfig/assume-changes-only-affect-direct-dependenices": "error"
|
|
214
|
+
"tsconfig/assume-changes-only-affect-direct-dependenices": "error",
|
|
215
|
+
"tsconfig/exact-optional-property-types": "error"
|
|
195
216
|
}
|
|
196
217
|
}
|
|
197
218
|
];
|