@darksheep/eslint 5.1.0 → 5.1.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 +7 -0
- package/package.json +1 -1
- package/src/plugins/perfectionist.js +106 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [5.1.1](https://github.com/DarkSheepSoftware/eslint/compare/v5.1.0...v5.1.1) (2024-07-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🐛 Fixes
|
|
7
|
+
|
|
8
|
+
* **perfectionist:** Add custom node builtin group ([07c0507](https://github.com/DarkSheepSoftware/eslint/commit/07c050739f40b725a5f32ab6bd8df2080767cbf7))
|
|
9
|
+
|
|
3
10
|
## [5.1.0](https://github.com/DarkSheepSoftware/eslint/compare/v5.0.0...v5.1.0) (2024-07-23)
|
|
4
11
|
|
|
5
12
|
|
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@ const groupClasses = [
|
|
|
22
22
|
|
|
23
23
|
const groupImports = [
|
|
24
24
|
'type',
|
|
25
|
-
'builtin',
|
|
25
|
+
[ 'builtin', 'builtins' ],
|
|
26
26
|
'external',
|
|
27
27
|
'internal-type',
|
|
28
28
|
'internal',
|
|
@@ -32,6 +32,110 @@ const groupImports = [
|
|
|
32
32
|
'unknown',
|
|
33
33
|
];
|
|
34
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
|
+
|
|
35
139
|
/** @type {import('eslint').Linter.RulesRecord} */
|
|
36
140
|
const commonRules = {
|
|
37
141
|
'perfectionist/sort-classes': [
|
|
@@ -63,6 +167,7 @@ const moduleRules = {
|
|
|
63
167
|
order: 'asc',
|
|
64
168
|
newlinesBetween: 'always',
|
|
65
169
|
groups: groupImports,
|
|
170
|
+
customGroups: { value: { builtins } },
|
|
66
171
|
},
|
|
67
172
|
],
|
|
68
173
|
'perfectionist/sort-named-exports': [
|