@open-turo/eslint-config-typescript 8.0.7 → 9.0.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.
@@ -18,6 +18,6 @@ repos:
18
18
  stages: [commit-msg]
19
19
  additional_dependencies: ["@open-turo/commitlint-config-conventional"]
20
20
  - repo: https://github.com/rhysd/actionlint
21
- rev: v1.6.27
21
+ rev: v1.7.0
22
22
  hooks:
23
23
  - id: actionlint
@@ -0,0 +1,3 @@
1
+ # Breaking changes in v9
2
+
3
+ - Enforce `@typescript-eslint/consistent-type-imports` and `@typescript-eslint/no-import-type-side-effects` with error configuration.
package/index.js CHANGED
@@ -72,6 +72,19 @@ module.exports = {
72
72
  "simple-import-sort/imports": "error",
73
73
  "simple-import-sort/exports": "error",
74
74
  "sort-destructure-keys/sort-destructure-keys": "error",
75
+ /**
76
+ * {@link https://typescript-eslint.io/rules/consistent-type-imports | TypeScript ESLint: consistent-type-imports docs}
77
+ */
78
+ "@typescript-eslint/consistent-type-imports": [
79
+ "error",
80
+ {
81
+ disallowTypeAnnotations: true,
82
+ fixStyle: "inline-type-imports",
83
+ prefer: "type-imports",
84
+ },
85
+ ],
86
+ /** Prefers `import type {}` syntax over `import { type }` if all imports are type-only */
87
+ "@typescript-eslint/no-import-type-side-effects": "error",
75
88
  "@typescript-eslint/no-unused-vars": [
76
89
  "error",
77
90
  {
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "eslint-plugin-prettier": "5.1.3",
14
14
  "eslint-plugin-simple-import-sort": "12.1.0",
15
15
  "eslint-plugin-sonarjs": "0.25.1",
16
- "eslint-plugin-sort-destructure-keys": "1.6.0",
16
+ "eslint-plugin-sort-destructure-keys": "2.0.0",
17
17
  "eslint-plugin-typescript-sort-keys": "3.2.0",
18
18
  "eslint-plugin-unicorn": "52.0.0"
19
19
  },
@@ -41,5 +41,5 @@
41
41
  "access": "public"
42
42
  },
43
43
  "repository": "https://github.com/open-turo/eslint-config-typescript",
44
- "version": "8.0.7"
44
+ "version": "9.0.0"
45
45
  }