@darksheep/eslint 6.8.1 → 6.8.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 +13 -0
- package/package.json +1 -1
- package/src/plugins/typescript.js +5 -2
- package/src/types.d.ts +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [6.8.2](https://github.com/DarkSheepSoftware/eslint/compare/v6.8.1...v6.8.2) (2025-02-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🩹 Fixes
|
|
7
|
+
|
|
8
|
+
* require `type` prefix in type imports ([564fbbf](https://github.com/DarkSheepSoftware/eslint/commit/564fbbfea2a58ff96e7751e953d0b58cf222f031))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### 🧹 Chores
|
|
12
|
+
|
|
13
|
+
* consistent-indexed-object-style style: record ([373c938](https://github.com/DarkSheepSoftware/eslint/commit/373c938bddbd33667e99b1028003323b02c349b1))
|
|
14
|
+
* eslint . --fix ([e05070c](https://github.com/DarkSheepSoftware/eslint/commit/e05070c8d3414fd9dd1001bb2081abedc02ad96c))
|
|
15
|
+
|
|
3
16
|
## [6.8.1](https://github.com/DarkSheepSoftware/eslint/compare/v6.8.0...v6.8.1) (2025-02-20)
|
|
4
17
|
|
|
5
18
|
|
package/package.json
CHANGED
|
@@ -91,12 +91,15 @@ export async function createEslintTypescriptConfig(root) {
|
|
|
91
91
|
'@typescript-eslint/class-literal-property-style': 'off',
|
|
92
92
|
'@typescript-eslint/class-methods-use-this': 'off',
|
|
93
93
|
'@typescript-eslint/consistent-generic-constructors': 'off',
|
|
94
|
-
'@typescript-eslint/consistent-indexed-object-style': [ 'error'
|
|
94
|
+
'@typescript-eslint/consistent-indexed-object-style': [ 'error' ],
|
|
95
95
|
'@typescript-eslint/consistent-return': 'off',
|
|
96
96
|
'@typescript-eslint/consistent-type-assertions': 'off',
|
|
97
97
|
'@typescript-eslint/consistent-type-definitions': [ 'error', 'type' ],
|
|
98
98
|
'@typescript-eslint/consistent-type-exports': [ 'error', { fixMixedExportsWithInlineTypeSpecifier: true } ],
|
|
99
|
-
'@typescript-eslint/consistent-type-imports': [ 'error', {
|
|
99
|
+
'@typescript-eslint/consistent-type-imports': [ 'error', {
|
|
100
|
+
fixStyle: 'inline-type-imports',
|
|
101
|
+
prefer: 'type-imports',
|
|
102
|
+
} ],
|
|
100
103
|
'@typescript-eslint/default-param-last': 'off',
|
|
101
104
|
'@typescript-eslint/dot-notation': 'error',
|
|
102
105
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
package/src/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
declare module '@eslint/js' {
|
|
7
|
-
import { ESLint } from 'eslint';
|
|
7
|
+
import { type ESLint } from 'eslint';
|
|
8
8
|
export default {
|
|
9
9
|
configs: {
|
|
10
10
|
all: WithRequired<ESLint.ConfigData, 'rules'>,
|
|
@@ -16,22 +16,22 @@ declare module '@eslint/js' {
|
|
|
16
16
|
type WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P] };
|
|
17
17
|
|
|
18
18
|
declare module '@eslint-community/eslint-plugin-eslint-comments' {
|
|
19
|
-
import { ESLint } from 'eslint';
|
|
19
|
+
import { type ESLint } from 'eslint';
|
|
20
20
|
export default {} as ESLint.Plugin;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
declare module 'eslint-plugin-perfectionist' {
|
|
24
|
-
import { ESLint } from 'eslint';
|
|
24
|
+
import { type ESLint } from 'eslint';
|
|
25
25
|
export default {} as ESLint.Plugin;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
declare module '@stylistic/eslint-plugin' {
|
|
29
|
-
import { ESLint } from 'eslint';
|
|
29
|
+
import { type ESLint } from 'eslint';
|
|
30
30
|
export default {} as WithRequired<ESLint.Plugin, 'environments'>;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
declare module 'eslint-plugin-promise' {
|
|
34
|
-
import { ESLint } from 'eslint';
|
|
34
|
+
import { type ESLint } from 'eslint';
|
|
35
35
|
export default {} as {
|
|
36
36
|
configs: {
|
|
37
37
|
recommended: WithRequired<ESLint.ConfigData, 'plugins' | 'rules'>;
|
|
@@ -41,12 +41,12 @@ declare module 'eslint-plugin-promise' {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
declare module 'eslint-plugin-react' {
|
|
44
|
-
import { ESLint } from 'eslint';
|
|
44
|
+
import { type ESLint } from 'eslint';
|
|
45
45
|
export default {} as ESLint.Plugin;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
declare module 'eslint-plugin-security' {
|
|
49
|
-
import { ESLint } from 'eslint';
|
|
49
|
+
import { type ESLint } from 'eslint';
|
|
50
50
|
export default {} as {
|
|
51
51
|
configs: {
|
|
52
52
|
recommended: WithRequired<ESLint.ConfigData, 'plugins' | 'rules'>;
|