@darksheep/eslint 6.6.9 → 6.7.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [6.7.0](https://github.com/DarkSheepSoftware/eslint/compare/v6.6.10...v6.7.0) (2024-11-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🌟 Features
|
|
7
|
+
|
|
8
|
+
* Remove custom builtins group ([94637e4](https://github.com/DarkSheepSoftware/eslint/commit/94637e41062de1a1ac2b19a412620c7b17d75ada))
|
|
9
|
+
|
|
10
|
+
## [6.6.10](https://github.com/DarkSheepSoftware/eslint/compare/v6.6.9...v6.6.10) (2024-11-27)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### 📦 Dependencies
|
|
14
|
+
|
|
15
|
+
* **pkg:** update dependency eslint-plugin-jsdoc to v50.6.0 ([#757](https://github.com/DarkSheepSoftware/eslint/issues/757)) ([e03373c](https://github.com/DarkSheepSoftware/eslint/commit/e03373caf634445cb111a02a8c9040f5af8eed0c))
|
|
16
|
+
* **pkg:** update dependency eslint-plugin-n to v17.14.0 ([#745](https://github.com/DarkSheepSoftware/eslint/issues/745)) ([8e698c0](https://github.com/DarkSheepSoftware/eslint/commit/8e698c063538f790b3e1ac5a80aa202aee0b1e39))
|
|
17
|
+
* **pkg:** update dependency eslint-plugin-perfectionist to v4 ([#742](https://github.com/DarkSheepSoftware/eslint/issues/742)) ([c4e0bfd](https://github.com/DarkSheepSoftware/eslint/commit/c4e0bfd5927ca1750af598358e1c1ee237e8d154))
|
|
18
|
+
* **pkg:** update dependency eslint-plugin-perfectionist to v4.1.2 ([#754](https://github.com/DarkSheepSoftware/eslint/issues/754)) ([eabac75](https://github.com/DarkSheepSoftware/eslint/commit/eabac75c78c8a3e9d91b8fee2f62216166cb75e1))
|
|
19
|
+
* **pkg:** update dependency eslint-plugin-promise to v7.2.1 ([#753](https://github.com/DarkSheepSoftware/eslint/issues/753)) ([53447be](https://github.com/DarkSheepSoftware/eslint/commit/53447be86db7aa70663f161e54f5b6e353227328))
|
|
20
|
+
* **pkg:** update typescript-eslint monorepo to v8.16.0 ([#755](https://github.com/DarkSheepSoftware/eslint/issues/755)) ([852270b](https://github.com/DarkSheepSoftware/eslint/commit/852270b82d5f3802efb094e609427054c93be0cf))
|
|
21
|
+
|
|
3
22
|
## [6.6.9](https://github.com/DarkSheepSoftware/eslint/compare/v6.6.8...v6.6.9) (2024-11-19)
|
|
4
23
|
|
|
5
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darksheep/eslint",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/DarkSheepSoftware/eslint"
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
|
|
27
27
|
"@eslint/js": "9.15.0",
|
|
28
28
|
"@stylistic/eslint-plugin": "2.11.0",
|
|
29
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
30
|
-
"@typescript-eslint/parser": "8.
|
|
29
|
+
"@typescript-eslint/eslint-plugin": "8.16.0",
|
|
30
|
+
"@typescript-eslint/parser": "8.16.0",
|
|
31
31
|
"editorconfig": "2.0.0",
|
|
32
|
-
"eslint-plugin-jsdoc": "50.
|
|
32
|
+
"eslint-plugin-jsdoc": "50.6.0",
|
|
33
33
|
"eslint-plugin-jsonc": "2.18.2",
|
|
34
|
-
"eslint-plugin-n": "17.
|
|
34
|
+
"eslint-plugin-n": "17.14.0",
|
|
35
35
|
"eslint-plugin-package-json": "0.15.6",
|
|
36
|
-
"eslint-plugin-perfectionist": "
|
|
37
|
-
"eslint-plugin-promise": "7.1
|
|
36
|
+
"eslint-plugin-perfectionist": "4.1.2",
|
|
37
|
+
"eslint-plugin-promise": "7.2.1",
|
|
38
38
|
"eslint-plugin-react": "7.37.2",
|
|
39
39
|
"eslint-plugin-regexp": "2.7.0",
|
|
40
40
|
"eslint-plugin-security": "3.0.1",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@darksheep/eslint-formatter-github": "2.0.1",
|
|
49
|
-
"@types/node": "~22.
|
|
49
|
+
"@types/node": "~22.10.0",
|
|
50
50
|
"eslint": "~9.15.0",
|
|
51
|
-
"type-fest": "~4.
|
|
52
|
-
"typescript": "~5.
|
|
51
|
+
"type-fest": "~4.29.0",
|
|
52
|
+
"typescript": "~5.7.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"eslint": {
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"optional": true
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
"packageManager": "yarn@4.5.
|
|
62
|
+
"packageManager": "yarn@4.5.3",
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": "^20 || ^22"
|
|
65
65
|
},
|
|
66
66
|
"volta": {
|
|
67
67
|
"node": "22.11.0",
|
|
68
|
-
"yarn": "4.5.
|
|
68
|
+
"yarn": "4.5.3"
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -20,122 +20,6 @@ const groupClasses = [
|
|
|
20
20
|
'unknown',
|
|
21
21
|
];
|
|
22
22
|
|
|
23
|
-
const groupImports = [
|
|
24
|
-
'type',
|
|
25
|
-
[ 'builtin', 'builtins' ],
|
|
26
|
-
'external',
|
|
27
|
-
'internal-type',
|
|
28
|
-
'internal',
|
|
29
|
-
[ 'parent-type', 'sibling-type', 'index-type' ],
|
|
30
|
-
[ 'parent', 'sibling', 'index' ],
|
|
31
|
-
'object',
|
|
32
|
-
'unknown',
|
|
33
|
-
];
|
|
34
|
-
|
|
35
|
-
const builtins = [
|
|
36
|
-
'assert',
|
|
37
|
-
'assert/strict',
|
|
38
|
-
'async_hooks',
|
|
39
|
-
'buffer',
|
|
40
|
-
'child_process',
|
|
41
|
-
'cluster',
|
|
42
|
-
'console',
|
|
43
|
-
'crypto',
|
|
44
|
-
'dgram',
|
|
45
|
-
'diagnostics_channel',
|
|
46
|
-
'dns',
|
|
47
|
-
'dns/promises',
|
|
48
|
-
'domain',
|
|
49
|
-
'events',
|
|
50
|
-
'fs',
|
|
51
|
-
'fs/promises',
|
|
52
|
-
'http',
|
|
53
|
-
'http2',
|
|
54
|
-
'inspector',
|
|
55
|
-
'inspector/promises',
|
|
56
|
-
'module',
|
|
57
|
-
'net',
|
|
58
|
-
'os',
|
|
59
|
-
'path',
|
|
60
|
-
'path/posix',
|
|
61
|
-
'path/win32',
|
|
62
|
-
'perf_hooks',
|
|
63
|
-
'process',
|
|
64
|
-
'punycode',
|
|
65
|
-
'querystring',
|
|
66
|
-
'readline',
|
|
67
|
-
'readline/promises',
|
|
68
|
-
'stream',
|
|
69
|
-
'stream/consumers',
|
|
70
|
-
'stream/promises',
|
|
71
|
-
'stream/web',
|
|
72
|
-
'string_decoder',
|
|
73
|
-
'timers',
|
|
74
|
-
'timers/promises',
|
|
75
|
-
'tls',
|
|
76
|
-
'trace_events',
|
|
77
|
-
'tty',
|
|
78
|
-
'url',
|
|
79
|
-
'util',
|
|
80
|
-
'util/types',
|
|
81
|
-
'v8',
|
|
82
|
-
'vm',
|
|
83
|
-
'wasi',
|
|
84
|
-
'worker_threads',
|
|
85
|
-
'zlib',
|
|
86
|
-
|
|
87
|
-
'node:assert',
|
|
88
|
-
'node:assert/strict',
|
|
89
|
-
'node:async_hooks',
|
|
90
|
-
'node:buffer',
|
|
91
|
-
'node:child_process',
|
|
92
|
-
'node:cluster',
|
|
93
|
-
'node:console',
|
|
94
|
-
'node:crypto',
|
|
95
|
-
'node:dgram',
|
|
96
|
-
'node:diagnostics_channel',
|
|
97
|
-
'node:dns',
|
|
98
|
-
'node:dns/promises',
|
|
99
|
-
'node:events',
|
|
100
|
-
'node:fs',
|
|
101
|
-
'node:fs/promises',
|
|
102
|
-
'node:http',
|
|
103
|
-
'node:http2',
|
|
104
|
-
'node:inspector',
|
|
105
|
-
'node:inspector/promises',
|
|
106
|
-
'node:module',
|
|
107
|
-
'node:net',
|
|
108
|
-
'node:os',
|
|
109
|
-
'node:path',
|
|
110
|
-
'node:path/posix',
|
|
111
|
-
'node:path/win32',
|
|
112
|
-
'node:perf_hooks',
|
|
113
|
-
'node:process',
|
|
114
|
-
'node:querystring',
|
|
115
|
-
'node:readline',
|
|
116
|
-
'node:readline/promises',
|
|
117
|
-
'node:sea',
|
|
118
|
-
'node:stream',
|
|
119
|
-
'node:stream/consumers',
|
|
120
|
-
'node:stream/promises',
|
|
121
|
-
'node:stream/web',
|
|
122
|
-
'node:string_decoder',
|
|
123
|
-
'node:test',
|
|
124
|
-
'node:timers',
|
|
125
|
-
'node:timers/promises',
|
|
126
|
-
'node:tls',
|
|
127
|
-
'node:trace_events',
|
|
128
|
-
'node:tty',
|
|
129
|
-
'node:url',
|
|
130
|
-
'node:util',
|
|
131
|
-
'node:util/types',
|
|
132
|
-
'node:v8',
|
|
133
|
-
'node:vm',
|
|
134
|
-
'node:wasi',
|
|
135
|
-
'node:worker_threads',
|
|
136
|
-
'node:zlib',
|
|
137
|
-
];
|
|
138
|
-
|
|
139
23
|
/** @type {import('eslint').Linter.RulesRecord} */
|
|
140
24
|
const commonRules = {
|
|
141
25
|
'perfectionist/sort-classes': [
|
|
@@ -166,8 +50,15 @@ const moduleRules = {
|
|
|
166
50
|
type: 'natural',
|
|
167
51
|
order: 'asc',
|
|
168
52
|
newlinesBetween: 'always',
|
|
169
|
-
groups:
|
|
170
|
-
|
|
53
|
+
groups: [
|
|
54
|
+
[ 'builtin-type', 'builtin' ],
|
|
55
|
+
[ 'external-type', 'external' ],
|
|
56
|
+
[ 'internal-type', 'internal' ],
|
|
57
|
+
[ 'parent-type', 'sibling-type', 'index-type' ],
|
|
58
|
+
[ 'parent', 'sibling', 'index' ],
|
|
59
|
+
'object',
|
|
60
|
+
'unknown',
|
|
61
|
+
],
|
|
171
62
|
},
|
|
172
63
|
],
|
|
173
64
|
'perfectionist/sort-named-exports': [
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: {
|
|
2
|
+
processors: {
|
|
3
|
+
logger: {
|
|
4
|
+
supportsAutofix: true;
|
|
5
|
+
postprocess: (messages: import("eslint").Linter.LintMessage[][], filename: string) => import("eslint").Linter.LintMessage[];
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
};
|
|
2
9
|
export default _default;
|
|
@@ -9,14 +9,14 @@ export function exists(path: string): Promise<boolean>;
|
|
|
9
9
|
* @param {string} [projectPath] - The path to the project root.
|
|
10
10
|
* @returns {boolean}
|
|
11
11
|
*/
|
|
12
|
-
export function descendsFrom(filePath?: string
|
|
12
|
+
export function descendsFrom(filePath?: string, projectPath?: string): boolean;
|
|
13
13
|
/**
|
|
14
14
|
* Create a list of parent directories from {filepath} to {stopDirectory}.
|
|
15
15
|
* @param {string} filepath - The file to start from.
|
|
16
16
|
* @param {string} [stopDirectory] - The directory to stop at.
|
|
17
17
|
* @returns {string[]}
|
|
18
18
|
*/
|
|
19
|
-
export function listParents(filepath: string, stopDirectory?: string
|
|
19
|
+
export function listParents(filepath: string, stopDirectory?: string): string[];
|
|
20
20
|
/**
|
|
21
21
|
* Find the closest {filename} starting from {rootFilePath}.
|
|
22
22
|
* @param {string[]} paths - The paths to search in.
|
|
@@ -31,4 +31,4 @@ export function findInPaths(paths: string[], filename: string): Promise<string |
|
|
|
31
31
|
* @param {string} [stopDirectory] - The directory to stop searching at.
|
|
32
32
|
* @returns {Promise<string|null>} Returns absolute path to the closest {filename} if found.
|
|
33
33
|
*/
|
|
34
|
-
export function findUp(rootFilePath: string, filename: string, stopDirectory?: string
|
|
34
|
+
export function findUp(rootFilePath: string, filename: string, stopDirectory?: string): Promise<string | null>;
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* @param {string} [packageName] - The name of the npm package.
|
|
5
5
|
* @returns {Promise<import('type-fest').PackageJson | null>}
|
|
6
6
|
*/
|
|
7
|
-
export function getPackageJson(rootUrl: import("node:url").URL, packageName?: string
|
|
7
|
+
export function getPackageJson(rootUrl: import("node:url").URL, packageName?: string): Promise<import("type-fest").PackageJson | null>;
|