@darksheep/eslint 6.6.10 → 6.7.1
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 +14 -0
- package/package.json +2 -2
- package/src/plugins/perfectionist.js +23 -133
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [6.7.1](https://github.com/DarkSheepSoftware/eslint/compare/v6.7.0...v6.7.1) (2024-11-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🩹 Fixes
|
|
7
|
+
|
|
8
|
+
* Move types to the top of the file ([b6089d0](https://github.com/DarkSheepSoftware/eslint/commit/b6089d0817961d80d3b496a46e7750e83a482bb0))
|
|
9
|
+
|
|
10
|
+
## [6.7.0](https://github.com/DarkSheepSoftware/eslint/compare/v6.6.10...v6.7.0) (2024-11-28)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### 🌟 Features
|
|
14
|
+
|
|
15
|
+
* Remove custom builtins group ([94637e4](https://github.com/DarkSheepSoftware/eslint/commit/94637e41062de1a1ac2b19a412620c7b17d75ada))
|
|
16
|
+
|
|
3
17
|
## [6.6.10](https://github.com/DarkSheepSoftware/eslint/compare/v6.6.9...v6.6.10) (2024-11-27)
|
|
4
18
|
|
|
5
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darksheep/eslint",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/DarkSheepSoftware/eslint"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@darksheep/eslint-formatter-github": "2.0.1",
|
|
49
49
|
"@types/node": "~22.10.0",
|
|
50
50
|
"eslint": "~9.15.0",
|
|
51
|
-
"type-fest": "~4.
|
|
51
|
+
"type-fest": "~4.29.0",
|
|
52
52
|
"typescript": "~5.7.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
@@ -6,136 +6,6 @@ import {
|
|
|
6
6
|
getTypescriptFiles,
|
|
7
7
|
} from '../utilities/eslint-files.js';
|
|
8
8
|
|
|
9
|
-
const groupClasses = [
|
|
10
|
-
'index-signature',
|
|
11
|
-
'static-property',
|
|
12
|
-
'private-property',
|
|
13
|
-
'property',
|
|
14
|
-
'constructor',
|
|
15
|
-
'static-method',
|
|
16
|
-
'private-method',
|
|
17
|
-
'static-private-method',
|
|
18
|
-
'method',
|
|
19
|
-
[ 'get-method', 'set-method' ],
|
|
20
|
-
'unknown',
|
|
21
|
-
];
|
|
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
9
|
/** @type {import('eslint').Linter.RulesRecord} */
|
|
140
10
|
const commonRules = {
|
|
141
11
|
'perfectionist/sort-classes': [
|
|
@@ -143,7 +13,19 @@ const commonRules = {
|
|
|
143
13
|
{
|
|
144
14
|
type: 'natural',
|
|
145
15
|
order: 'asc',
|
|
146
|
-
groups:
|
|
16
|
+
groups: [
|
|
17
|
+
'index-signature',
|
|
18
|
+
'static-property',
|
|
19
|
+
'private-property',
|
|
20
|
+
'property',
|
|
21
|
+
'constructor',
|
|
22
|
+
'static-method',
|
|
23
|
+
'private-method',
|
|
24
|
+
'static-private-method',
|
|
25
|
+
'method',
|
|
26
|
+
[ 'get-method', 'set-method' ],
|
|
27
|
+
'unknown',
|
|
28
|
+
],
|
|
147
29
|
},
|
|
148
30
|
],
|
|
149
31
|
'perfectionist/sort-array-includes': 0,
|
|
@@ -166,8 +48,16 @@ const moduleRules = {
|
|
|
166
48
|
type: 'natural',
|
|
167
49
|
order: 'asc',
|
|
168
50
|
newlinesBetween: 'always',
|
|
169
|
-
groups:
|
|
170
|
-
|
|
51
|
+
groups: [
|
|
52
|
+
[ 'type' ],
|
|
53
|
+
[ 'builtin' ],
|
|
54
|
+
[ 'external' ],
|
|
55
|
+
[ 'internal' ],
|
|
56
|
+
[ 'parent-type', 'sibling-type', 'index-type' ],
|
|
57
|
+
[ 'parent', 'sibling', 'index' ],
|
|
58
|
+
'object',
|
|
59
|
+
'unknown',
|
|
60
|
+
],
|
|
171
61
|
},
|
|
172
62
|
],
|
|
173
63
|
'perfectionist/sort-named-exports': [
|