@ethang/eslint-config 19.2.9 → 19.2.10
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/eslint.config.js +4 -1
- package/package.json +1 -1
- package/setup/typescript-eslint.js +4 -0
package/eslint.config.js
CHANGED
|
@@ -300,7 +300,10 @@ export default tseslint.config(
|
|
|
300
300
|
"@typescript-eslint/consistent-type-assertions": "error",
|
|
301
301
|
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
|
|
302
302
|
"@typescript-eslint/consistent-type-exports": "error",
|
|
303
|
-
"@typescript-eslint/consistent-type-imports":
|
|
303
|
+
"@typescript-eslint/consistent-type-imports": [
|
|
304
|
+
"error",
|
|
305
|
+
{ fixStyle: "inline-type-imports" },
|
|
306
|
+
],
|
|
304
307
|
"@typescript-eslint/default-param-last": "error",
|
|
305
308
|
"@typescript-eslint/dot-notation": "error",
|
|
306
309
|
"@typescript-eslint/explicit-function-return-type": "off",
|
package/package.json
CHANGED
|
@@ -20,6 +20,10 @@ const customRules = [
|
|
|
20
20
|
name: "consistent-type-definitions",
|
|
21
21
|
rule: ["error", "type"],
|
|
22
22
|
},
|
|
23
|
+
{
|
|
24
|
+
name: "consistent-type-imports",
|
|
25
|
+
rule: ["error", { fixStyle: "inline-type-imports" }],
|
|
26
|
+
},
|
|
23
27
|
{
|
|
24
28
|
name: "explicit-function-return-type",
|
|
25
29
|
rule: "off",
|