@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 +29 -0
- package/package.json +13 -13
- package/src/configs/eslint-complexity.js +34 -24
- package/src/plugins/jsdoc.js +1 -1
- package/src/plugins/typescript.js +145 -124
- package/src/plugins/unicorn.js +1 -1
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.
|
|
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": "
|
|
29
|
+
"@eslint/compat": "2.0.0",
|
|
30
30
|
"@eslint/js": "9.39.1",
|
|
31
|
-
"@stylistic/eslint-plugin": "5.
|
|
32
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
33
|
-
"@typescript-eslint/parser": "8.
|
|
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
|
|
37
|
-
"eslint-plugin-jsdoc": "61.1
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
75
|
-
"yarn": "4.
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
'
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
'
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
}
|
package/src/plugins/jsdoc.js
CHANGED
|
@@ -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:
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
// Rules that prevert some commmon ts issues
|
|
77
|
+
'no-var': 'error',
|
|
78
|
+
'prefer-rest-params': 'error',
|
|
79
|
+
'prefer-spread': 'error',
|
|
79
80
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
'
|
|
160
|
-
|
|
161
|
-
|
|
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
|
}
|
package/src/plugins/unicorn.js
CHANGED
|
@@ -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': '
|
|
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',
|