@darksheep/eslint 10.0.0 → 10.0.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## [10.0.2](https://github.com/DarkSheepSoftware/eslint/compare/v10.0.1...v10.0.2) (2025-12-04)
4
+
5
+
6
+ ### 🩹 Fixes
7
+
8
+ * better import management in js files ([#1090](https://github.com/DarkSheepSoftware/eslint/issues/1090)) ([f0de9e8](https://github.com/DarkSheepSoftware/eslint/commit/f0de9e863fba2b8ca47bdbd8a99a2130719b4ab9))
9
+
10
+
11
+ ### 📦 Dependencies
12
+
13
+ * **pkg:** update dependency @eslint/compat to v2 ([#1081](https://github.com/DarkSheepSoftware/eslint/issues/1081)) ([80a04f4](https://github.com/DarkSheepSoftware/eslint/commit/80a04f4c2561627575d82b9bdb5015e317c895e1))
14
+ * **pkg:** update dependency @stylistic/eslint-plugin to v5.6.1 ([#1084](https://github.com/DarkSheepSoftware/eslint/issues/1084)) ([c1d56b3](https://github.com/DarkSheepSoftware/eslint/commit/c1d56b35a874b71f7353a31cbb32baeb2568dc5b))
15
+ * **pkg:** update dependency eslint-plugin-jest to v29.2.1 ([#1087](https://github.com/DarkSheepSoftware/eslint/issues/1087)) ([6c14d69](https://github.com/DarkSheepSoftware/eslint/commit/6c14d69f74a013f22a341c4da7bfe31f642ef20d))
16
+ * **pkg:** update dependency eslint-plugin-jsdoc to v61.4.1 ([#1080](https://github.com/DarkSheepSoftware/eslint/issues/1080)) ([b5e1e68](https://github.com/DarkSheepSoftware/eslint/commit/b5e1e68941d9a3b295a04e87be2b51896bdc357b))
17
+ * **pkg:** update dependency eslint-plugin-package-json to v0.85.0 ([#1079](https://github.com/DarkSheepSoftware/eslint/issues/1079)) ([df78801](https://github.com/DarkSheepSoftware/eslint/commit/df7880171c9ebe197707c6035a4d032e732d5881))
18
+ * **pkg:** update dependency yaml-eslint-parser to v1.3.1 ([#1089](https://github.com/DarkSheepSoftware/eslint/issues/1089)) ([7007275](https://github.com/DarkSheepSoftware/eslint/commit/7007275e569b2e46133c04f95aa27dcb6312a883))
19
+ * **pkg:** update typescript-eslint monorepo to v8.48.1 ([#1083](https://github.com/DarkSheepSoftware/eslint/issues/1083)) ([51fceb9](https://github.com/DarkSheepSoftware/eslint/commit/51fceb9443a31f5b6666d0f8f70b709e1e9ef06a))
20
+
21
+ ## [10.0.1](https://github.com/DarkSheepSoftware/eslint/compare/v10.0.0...v10.0.1) (2025-11-11)
22
+
23
+
24
+ ### 🩹 Fixes
25
+
26
+ * Disable 'unicorn/require-module-specifiers' rule ([7d84b2f](https://github.com/DarkSheepSoftware/eslint/commit/7d84b2f8ee95485f88208aa0ad23ab8f50f7f3a4))
27
+ * make complexity rules softer in tests ([e374f0b](https://github.com/DarkSheepSoftware/eslint/commit/e374f0be288b9a9fca9b098aaa6c18ee816fac46))
28
+ * make import/export `type` not occur in js files ([49eaf45](https://github.com/DarkSheepSoftware/eslint/commit/49eaf45f2609f5887bd725465ad3f49bcd45f769))
29
+ * prefer-promise-reject-errors rule allowThrowingUnknown: true ([14ec8b4](https://github.com/DarkSheepSoftware/eslint/commit/14ec8b4015327d696591570076e5338bfeccbccc))
30
+ * Set `exemptTypedefs: true` in `jsdoc/prefer-import-tag` ([e1ec731](https://github.com/DarkSheepSoftware/eslint/commit/e1ec7319987512b818d3ad81e9f148e8edb6f14d))
31
+
3
32
  ## [10.0.0](https://github.com/DarkSheepSoftware/eslint/compare/v9.0.2...v10.0.0) (2025-11-11)
4
33
 
5
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darksheep/eslint",
3
- "version": "10.0.0",
3
+ "version": "10.0.2",
4
4
  "description": "A fairly complete (opinionated) eslint config",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,18 +26,18 @@
26
26
  "dependencies": {
27
27
  "@darksheep/environment": "3.2.0",
28
28
  "@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
29
- "@eslint/compat": "1.4.1",
29
+ "@eslint/compat": "2.0.0",
30
30
  "@eslint/js": "9.39.1",
31
- "@stylistic/eslint-plugin": "5.5.0",
32
- "@typescript-eslint/eslint-plugin": "8.46.4",
33
- "@typescript-eslint/parser": "8.46.4",
31
+ "@stylistic/eslint-plugin": "5.6.1",
32
+ "@typescript-eslint/eslint-plugin": "8.48.1",
33
+ "@typescript-eslint/parser": "8.48.1",
34
34
  "editorconfig": "3.0.1",
35
35
  "eslint-plugin-command": "3.3.1",
36
- "eslint-plugin-jest": "29.1.0",
37
- "eslint-plugin-jsdoc": "61.1.12",
36
+ "eslint-plugin-jest": "29.2.1",
37
+ "eslint-plugin-jsdoc": "61.4.1",
38
38
  "eslint-plugin-jsonc": "2.21.0",
39
39
  "eslint-plugin-n": "17.23.1",
40
- "eslint-plugin-package-json": "0.65.3",
40
+ "eslint-plugin-package-json": "0.85.0",
41
41
  "eslint-plugin-perfectionist": "4.15.1",
42
42
  "eslint-plugin-promise": "7.2.1",
43
43
  "eslint-plugin-react": "7.37.5",
@@ -48,12 +48,12 @@
48
48
  "eslint-plugin-unused-imports": "4.3.0",
49
49
  "eslint-plugin-yml": "1.19.0",
50
50
  "jsonc-eslint-parser": "2.4.1",
51
- "yaml-eslint-parser": "1.3.0"
51
+ "yaml-eslint-parser": "1.3.1"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@darksheep/eslint-formatter-github": "2.2.0",
55
55
  "@darksheep/package.json": "~3.1.0",
56
- "@eslint/config-inspector": "~1.3.0",
56
+ "@eslint/config-inspector": "~1.4.0",
57
57
  "@types/node": "~24.10.0",
58
58
  "eslint": "~9.39.0",
59
59
  "typescript": "~5.9.0"
@@ -66,12 +66,12 @@
66
66
  "optional": true
67
67
  }
68
68
  },
69
- "packageManager": "yarn@4.11.0",
69
+ "packageManager": "yarn@4.12.0",
70
70
  "engines": {
71
71
  "node": "^20.13.1 || >=22.2.0"
72
72
  },
73
73
  "volta": {
74
- "node": "24.11.0",
75
- "yarn": "4.11.0"
74
+ "node": "24.11.1",
75
+ "yarn": "4.12.0"
76
76
  }
77
77
  }
@@ -6,29 +6,39 @@
6
6
  * @returns {Linter.Config[]}
7
7
  */
8
8
  export function createEslintComplexityConfig() {
9
- return [ {
10
- name: 'darksheep/complexity',
11
- rules: {
12
- 'max-depth': [ 'error', 4 ],
13
- 'complexity': 'off',
14
- 'max-lines': [
15
- 'warn',
16
- {
17
- max: 512,
18
- skipBlankLines: true,
19
- skipComments: true,
20
- },
21
- ],
22
- 'max-lines-per-function': [
23
- 'warn',
24
- {
25
- max: 120,
26
- skipBlankLines: true,
27
- skipComments: true,
28
- },
29
- ],
30
- 'max-nested-callbacks': [ 'warn', 3 ],
31
- 'max-params': [ 'error', 5 ],
9
+ return [
10
+ {
11
+ name: 'darksheep/complexity',
12
+ rules: {
13
+ 'max-depth': [ 'error', 4 ],
14
+ 'complexity': 'off',
15
+ 'max-lines': [
16
+ 'warn',
17
+ {
18
+ max: 512,
19
+ skipBlankLines: true,
20
+ skipComments: true,
21
+ },
22
+ ],
23
+ 'max-lines-per-function': [
24
+ 'warn',
25
+ {
26
+ max: 120,
27
+ skipBlankLines: true,
28
+ skipComments: true,
29
+ },
30
+ ],
31
+ 'max-nested-callbacks': [ 'warn', 3 ],
32
+ 'max-params': [ 'error', 5 ],
33
+ },
32
34
  },
33
- } ];
35
+ {
36
+ files: [ '**/*.test.*' ],
37
+ rules: {
38
+ 'max-lines': 'off',
39
+ 'max-lines-per-function': 'off',
40
+ 'max-nested-callbacks': [ 'warn', 5 ],
41
+ },
42
+ },
43
+ ];
34
44
  }
@@ -93,7 +93,7 @@ export async function createEslintJSDocConfig(root) {
93
93
  'jsdoc/escape-inline-tags': [ 'error', { enableFixer: true, fixType: 'backslash' } ],
94
94
  'jsdoc/prefer-import-tag': [ 'warn', {
95
95
  outputType: 'named-import',
96
- exemptTypedefs: false,
96
+ exemptTypedefs: true,
97
97
  } ],
98
98
  'jsdoc/reject-any-type': 'warn',
99
99
  'jsdoc/reject-function-type': 'warn',
@@ -32,133 +32,154 @@ export async function createEslintTypescriptConfig(root) {
32
32
  const typescriptParser = idef(await import('@typescript-eslint/parser'));
33
33
  const typescriptPlugin = idef(await import('@typescript-eslint/eslint-plugin'));
34
34
 
35
- return [ {
36
- name: 'typescript/custom',
37
- files: [
38
- ...await getCommonFiles(root),
39
- ...await getModuleFiles(root),
40
- ...getTypescriptFiles(),
41
- ],
42
- languageOptions: {
43
- parser: typescriptParser,
44
- sourceType: 'module',
45
- parserOptions: {
46
- projectService: true,
47
- warnOnUnsupportedTypeScriptVersion: false,
35
+ return [
36
+ {
37
+ name: 'typescript/base',
38
+ files: [
39
+ ...await getCommonFiles(root),
40
+ ...await getModuleFiles(root),
41
+ ...getTypescriptFiles(),
42
+ ],
43
+ languageOptions: {
44
+ parser: typescriptParser,
45
+ sourceType: 'module',
46
+ parserOptions: {
47
+ projectService: true,
48
+ warnOnUnsupportedTypeScriptVersion: false,
49
+ },
48
50
  },
49
- },
50
- plugins: {
51
- // @ts-expect-error -- I love that the ts plugin is not compatible...
52
- '@typescript-eslint': typescriptPlugin,
53
- },
54
- rules: {
55
- // Rules that fight with typescript
56
- 'constructor-super': 'off',
57
- 'dot-notation': 'off',
58
- 'getter-return': 'off',
59
- 'no-const-assign': 'off',
60
- 'no-dupe-args': 'off',
61
- 'no-dupe-class-members': 'off',
62
- 'no-dupe-keys': 'off',
63
- 'no-func-assign': 'off',
64
- 'no-import-assign': 'off',
65
- // 'no-new-symbol': 'off',
66
- 'no-obj-calls': 'off',
67
- 'no-redeclare': 'off',
68
- 'no-setter-return': 'off',
69
- 'no-this-before-super': 'off',
70
- 'no-undef': 'off',
71
- 'no-unreachable': 'off',
72
- 'no-unsafe-negation': 'off',
73
- 'no-array-constructor': 'off',
51
+ plugins: {
52
+ // @ts-expect-error -- I love that the ts plugin is not compatible...
53
+ '@typescript-eslint': typescriptPlugin,
54
+ },
55
+ rules: {
56
+ // Rules that fight with typescript
57
+ 'constructor-super': 'off',
58
+ 'dot-notation': 'off',
59
+ 'getter-return': 'off',
60
+ 'no-const-assign': 'off',
61
+ 'no-dupe-args': 'off',
62
+ 'no-dupe-class-members': 'off',
63
+ 'no-dupe-keys': 'off',
64
+ 'no-func-assign': 'off',
65
+ 'no-import-assign': 'off',
66
+ // 'no-new-symbol': 'off',
67
+ 'no-obj-calls': 'off',
68
+ 'no-redeclare': 'off',
69
+ 'no-setter-return': 'off',
70
+ 'no-this-before-super': 'off',
71
+ 'no-undef': 'off',
72
+ 'no-unreachable': 'off',
73
+ 'no-unsafe-negation': 'off',
74
+ 'no-array-constructor': 'off',
74
75
 
75
- // Rules that prevert some commmon ts issues
76
- 'no-var': 'error',
77
- 'prefer-rest-params': 'error',
78
- 'prefer-spread': 'error',
76
+ // Rules that prevert some commmon ts issues
77
+ 'no-var': 'error',
78
+ 'prefer-rest-params': 'error',
79
+ 'prefer-spread': 'error',
79
80
 
80
- // ts eslint recommended
81
- '@typescript-eslint/ban-ts-comment': 'error',
82
- '@typescript-eslint/no-empty-object-type': 'error',
83
- '@typescript-eslint/no-unsafe-function-type': 'error',
84
- '@typescript-eslint/no-wrapper-object-types': 'error',
85
- '@typescript-eslint/no-array-constructor': 'error',
86
- '@typescript-eslint/no-duplicate-enum-values': 'error',
87
- '@typescript-eslint/no-explicit-any': 'error',
88
- '@typescript-eslint/no-extra-non-null-assertion': 'error',
89
- '@typescript-eslint/no-misused-new': 'error',
90
- '@typescript-eslint/no-namespace': [ 'error', { allowDeclarations: true } ],
91
- '@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
92
- '@typescript-eslint/no-this-alias': 'error',
93
- '@typescript-eslint/no-unnecessary-type-constraint': 'error',
94
- '@typescript-eslint/no-unsafe-declaration-merging': 'error',
95
- '@typescript-eslint/no-require-imports': 'error',
96
- '@typescript-eslint/prefer-as-const': 'error',
97
- '@typescript-eslint/triple-slash-reference': 'error',
81
+ // ts eslint recommended
82
+ '@typescript-eslint/ban-ts-comment': 'error',
83
+ '@typescript-eslint/no-empty-object-type': 'error',
84
+ '@typescript-eslint/no-unsafe-function-type': 'error',
85
+ '@typescript-eslint/no-wrapper-object-types': 'error',
86
+ '@typescript-eslint/no-array-constructor': 'error',
87
+ '@typescript-eslint/no-duplicate-enum-values': 'error',
88
+ '@typescript-eslint/no-explicit-any': 'error',
89
+ '@typescript-eslint/no-extra-non-null-assertion': 'error',
90
+ '@typescript-eslint/no-misused-new': 'error',
91
+ '@typescript-eslint/no-namespace': [ 'error', { allowDeclarations: true } ],
92
+ '@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
93
+ '@typescript-eslint/no-this-alias': 'error',
94
+ '@typescript-eslint/no-unnecessary-type-constraint': 'error',
95
+ '@typescript-eslint/no-unsafe-declaration-merging': 'error',
96
+ '@typescript-eslint/prefer-as-const': 'error',
97
+ '@typescript-eslint/triple-slash-reference': 'error',
98
98
 
99
- // custom extras
100
- '@typescript-eslint/adjacent-overload-signatures': 'off',
101
- '@typescript-eslint/array-type': 'error',
102
- '@typescript-eslint/await-thenable': 'warn',
103
- '@typescript-eslint/ban-tslint-comment': 'error',
104
- '@typescript-eslint/class-literal-property-style': 'off',
105
- '@typescript-eslint/class-methods-use-this': 'off',
106
- '@typescript-eslint/consistent-generic-constructors': 'off',
107
- '@typescript-eslint/consistent-indexed-object-style': [ 'error' ],
108
- '@typescript-eslint/consistent-return': 'off',
109
- '@typescript-eslint/consistent-type-assertions': 'off',
110
- '@typescript-eslint/consistent-type-definitions': [ 'error', 'type' ],
111
- '@typescript-eslint/consistent-type-exports': [ 'error', { fixMixedExportsWithInlineTypeSpecifier: true } ],
112
- '@typescript-eslint/consistent-type-imports': [ 'error', {
113
- fixStyle: 'inline-type-imports',
114
- prefer: 'type-imports',
115
- } ],
116
- '@typescript-eslint/default-param-last': 'off',
117
- '@typescript-eslint/dot-notation': 'error',
118
- '@typescript-eslint/explicit-function-return-type': 'off',
119
- '@typescript-eslint/explicit-member-accessibility': 'off',
120
- '@typescript-eslint/explicit-module-boundary-types': 'off',
121
- '@typescript-eslint/init-declarations': 'off',
122
- '@typescript-eslint/max-params': 'off',
123
- '@typescript-eslint/member-ordering': 'off',
124
- '@typescript-eslint/method-signature-style': 'off',
125
- '@typescript-eslint/naming-convention': 'off',
126
- '@typescript-eslint/no-array-delete': 'error',
127
- '@typescript-eslint/no-base-to-string': 'warn',
128
- '@typescript-eslint/no-confusing-non-null-assertion': 'warn',
129
- '@typescript-eslint/no-confusing-void-expression': 'warn',
130
- '@typescript-eslint/no-deprecated': 'error',
131
- '@typescript-eslint/only-throw-error': 'error',
132
- '@typescript-eslint/prefer-destructuring': 'off',
133
- '@typescript-eslint/prefer-enum-initializers': 'off',
134
- '@typescript-eslint/prefer-find': 'error',
135
- '@typescript-eslint/prefer-for-of': 'error',
136
- '@typescript-eslint/prefer-function-type': 'off',
137
- '@typescript-eslint/prefer-includes': 'error',
138
- '@typescript-eslint/prefer-literal-enum-member': 'off',
139
- '@typescript-eslint/prefer-namespace-keyword': 'off',
140
- '@typescript-eslint/prefer-nullish-coalescing': 'error',
141
- '@typescript-eslint/prefer-optional-chain': 'error',
142
- '@typescript-eslint/prefer-promise-reject-errors': 'error',
143
- '@typescript-eslint/prefer-readonly-parameter-types': 'off',
144
- '@typescript-eslint/prefer-readonly': 'off',
145
- '@typescript-eslint/prefer-reduce-type-parameter': 'off',
146
- '@typescript-eslint/prefer-regexp-exec': 'off',
147
- '@typescript-eslint/prefer-return-this-type': 'off',
148
- '@typescript-eslint/prefer-string-starts-ends-with': 'error',
149
- '@typescript-eslint/promise-function-async': 'off',
150
- '@typescript-eslint/related-getter-setter-pairs': 'off',
151
- '@typescript-eslint/require-array-sort-compare': 'off',
152
- '@typescript-eslint/require-await': 'off',
153
- '@typescript-eslint/restrict-plus-operands': 'error',
154
- '@typescript-eslint/restrict-template-expressions': 'off',
155
- '@typescript-eslint/return-await': [ 'warn', 'always' ],
156
- '@typescript-eslint/strict-boolean-expressions': 'error',
157
- '@typescript-eslint/switch-exhaustiveness-check': 'off',
158
- '@typescript-eslint/typedef': 'off',
159
- '@typescript-eslint/unbound-method': 'off',
160
- '@typescript-eslint/unified-signatures': [ 'warn', { ignoreDifferentlyNamedParameters: true } ],
161
- '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',
99
+ // custom extras
100
+ '@typescript-eslint/adjacent-overload-signatures': 'off',
101
+ '@typescript-eslint/array-type': 'error',
102
+ '@typescript-eslint/await-thenable': 'warn',
103
+ '@typescript-eslint/ban-tslint-comment': 'error',
104
+ '@typescript-eslint/class-literal-property-style': 'off',
105
+ '@typescript-eslint/class-methods-use-this': 'off',
106
+ '@typescript-eslint/consistent-generic-constructors': 'off',
107
+ '@typescript-eslint/consistent-indexed-object-style': [ 'error' ],
108
+ '@typescript-eslint/consistent-return': 'off',
109
+ '@typescript-eslint/consistent-type-assertions': 'off',
110
+ '@typescript-eslint/consistent-type-definitions': [ 'error', 'type' ],
111
+ '@typescript-eslint/default-param-last': 'off',
112
+ '@typescript-eslint/dot-notation': 'error',
113
+ '@typescript-eslint/explicit-function-return-type': 'off',
114
+ '@typescript-eslint/explicit-member-accessibility': 'off',
115
+ '@typescript-eslint/explicit-module-boundary-types': 'off',
116
+ '@typescript-eslint/init-declarations': 'off',
117
+ '@typescript-eslint/max-params': 'off',
118
+ '@typescript-eslint/member-ordering': 'off',
119
+ '@typescript-eslint/method-signature-style': 'off',
120
+ '@typescript-eslint/naming-convention': 'off',
121
+ '@typescript-eslint/no-array-delete': 'error',
122
+ '@typescript-eslint/no-base-to-string': 'warn',
123
+ '@typescript-eslint/no-confusing-non-null-assertion': 'warn',
124
+ '@typescript-eslint/no-confusing-void-expression': 'warn',
125
+ '@typescript-eslint/no-deprecated': 'error',
126
+ '@typescript-eslint/only-throw-error': 'error',
127
+ '@typescript-eslint/prefer-destructuring': 'off',
128
+ '@typescript-eslint/prefer-enum-initializers': 'off',
129
+ '@typescript-eslint/prefer-find': 'error',
130
+ '@typescript-eslint/prefer-for-of': 'error',
131
+ '@typescript-eslint/prefer-function-type': 'off',
132
+ '@typescript-eslint/prefer-includes': 'error',
133
+ '@typescript-eslint/prefer-literal-enum-member': 'off',
134
+ '@typescript-eslint/prefer-namespace-keyword': 'off',
135
+ '@typescript-eslint/prefer-nullish-coalescing': 'error',
136
+ '@typescript-eslint/prefer-optional-chain': 'error',
137
+ '@typescript-eslint/prefer-promise-reject-errors': [ 'error', { allowThrowingUnknown: true } ],
138
+ '@typescript-eslint/prefer-readonly-parameter-types': 'off',
139
+ '@typescript-eslint/prefer-readonly': 'off',
140
+ '@typescript-eslint/prefer-reduce-type-parameter': 'off',
141
+ '@typescript-eslint/prefer-regexp-exec': 'off',
142
+ '@typescript-eslint/prefer-return-this-type': 'off',
143
+ '@typescript-eslint/prefer-string-starts-ends-with': 'error',
144
+ '@typescript-eslint/promise-function-async': 'off',
145
+ '@typescript-eslint/related-getter-setter-pairs': 'off',
146
+ '@typescript-eslint/require-array-sort-compare': 'off',
147
+ '@typescript-eslint/require-await': 'off',
148
+ '@typescript-eslint/restrict-plus-operands': 'error',
149
+ '@typescript-eslint/restrict-template-expressions': 'off',
150
+ '@typescript-eslint/return-await': [ 'warn', 'always' ],
151
+ '@typescript-eslint/strict-boolean-expressions': 'error',
152
+ '@typescript-eslint/switch-exhaustiveness-check': 'off',
153
+ '@typescript-eslint/typedef': 'off',
154
+ '@typescript-eslint/unbound-method': 'off',
155
+ '@typescript-eslint/unified-signatures': [ 'warn', { ignoreDifferentlyNamedParameters: true } ],
156
+ },
157
+ },
158
+ {
159
+ name: 'typescript/cjs',
160
+ files: await getCommonFiles(root),
161
+ rules: {
162
+ '@typescript-eslint/no-require-imports': 'off',
163
+ },
164
+ },
165
+ {
166
+ name: 'typescript/mjs',
167
+ files: await getModuleFiles(root),
168
+ rules: {
169
+ '@typescript-eslint/no-require-imports': 'error',
170
+ },
171
+ },
172
+ {
173
+ name: 'typescript/ts',
174
+ files: getTypescriptFiles(),
175
+ rules: {
176
+ '@typescript-eslint/consistent-type-exports': [ 'error', { fixMixedExportsWithInlineTypeSpecifier: true } ],
177
+ '@typescript-eslint/consistent-type-imports': [ 'error', {
178
+ fixStyle: 'inline-type-imports',
179
+ prefer: 'type-imports',
180
+ } ],
181
+ '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',
182
+ },
162
183
  },
163
- } ];
184
+ ];
164
185
  }
@@ -155,7 +155,7 @@ export async function createEslintUnicornConfig(root) {
155
155
  'unicorn/relative-url-style': 'error',
156
156
  'unicorn/require-array-join-separator': 'error',
157
157
  'unicorn/require-module-attributes': 'warn',
158
- 'unicorn/require-module-specifiers': 'warn',
158
+ 'unicorn/require-module-specifiers': 'off',
159
159
  'unicorn/require-number-to-fixed-digits-argument': 'error',
160
160
  'unicorn/require-post-message-target-origin': 'error',
161
161
  'unicorn/string-content': 'off',