@darksheep/eslint 5.1.0 → 5.1.3
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 +28 -0
- package/package.json +5 -5
- package/src/plugins/perfectionist.js +106 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [5.1.3](https://github.com/DarkSheepSoftware/eslint/compare/v5.1.2...v5.1.3) (2024-07-26)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 📦 Dependencies
|
|
7
|
+
|
|
8
|
+
* **deps:** update dependency @typescript-eslint/type-utils to v8.0.0-alpha.53 ([#529](https://github.com/DarkSheepSoftware/eslint/issues/529)) ([85e1222](https://github.com/DarkSheepSoftware/eslint/commit/85e12222a9ee382bc0370ec38b61fc0121bc6ef8))
|
|
9
|
+
* **deps:** update typescript-eslint monorepo to v8.0.0-alpha.53 ([#527](https://github.com/DarkSheepSoftware/eslint/issues/527)) ([1bf38d0](https://github.com/DarkSheepSoftware/eslint/commit/1bf38d093e816d1f086dd189a23e4bc608e412f6))
|
|
10
|
+
* **deps:** update typescript-eslint monorepo to v8.0.0-alpha.54 ([#530](https://github.com/DarkSheepSoftware/eslint/issues/530)) ([ec20409](https://github.com/DarkSheepSoftware/eslint/commit/ec2040940928cbcce0a9883b60ee68d04e9a58bc))
|
|
11
|
+
* **pkg:** update dependency eslint-plugin-n to v17.10.1 ([#532](https://github.com/DarkSheepSoftware/eslint/issues/532)) ([e45b6c5](https://github.com/DarkSheepSoftware/eslint/commit/e45b6c501f53bf456ffac3a3d32fc25ae940b641))
|
|
12
|
+
* **pkg:** update dependency eslint-plugin-unicorn to v55 ([#531](https://github.com/DarkSheepSoftware/eslint/issues/531)) ([537f3cd](https://github.com/DarkSheepSoftware/eslint/commit/537f3cd58194a0a37d5c4179dc0ba2b9437ef4b3))
|
|
13
|
+
|
|
14
|
+
## [5.1.2](https://github.com/DarkSheepSoftware/eslint/compare/v5.1.1...v5.1.2) (2024-07-24)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### 📦 Dependencies
|
|
18
|
+
|
|
19
|
+
* **deps:** update typescript-eslint monorepo to v8.0.0-alpha.52 ([#525](https://github.com/DarkSheepSoftware/eslint/issues/525)) ([d031aed](https://github.com/DarkSheepSoftware/eslint/commit/d031aed8d009e63506f1b6424bfc5266ed7a8635))
|
|
20
|
+
* **dev:** update dependency @types/node to v20.14.12 ([#523](https://github.com/DarkSheepSoftware/eslint/issues/523)) ([42ef805](https://github.com/DarkSheepSoftware/eslint/commit/42ef805e33297f1d26f757869266a766201cbf7d))
|
|
21
|
+
* **pkg:** update dependency eslint-plugin-promise to v7 ([#526](https://github.com/DarkSheepSoftware/eslint/issues/526)) ([5a480be](https://github.com/DarkSheepSoftware/eslint/commit/5a480be234ac8a81cae1c8b99885241c3e48453b))
|
|
22
|
+
* **pkg:** update dependency eslint-plugin-sonarjs to v1.0.4 ([#522](https://github.com/DarkSheepSoftware/eslint/issues/522)) ([5c43a72](https://github.com/DarkSheepSoftware/eslint/commit/5c43a72be0de2959c8c29994768606d8f2b36929))
|
|
23
|
+
|
|
24
|
+
## [5.1.1](https://github.com/DarkSheepSoftware/eslint/compare/v5.1.0...v5.1.1) (2024-07-23)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### 🐛 Fixes
|
|
28
|
+
|
|
29
|
+
* **perfectionist:** Add custom node builtin group ([07c0507](https://github.com/DarkSheepSoftware/eslint/commit/07c050739f40b725a5f32ab6bd8df2080767cbf7))
|
|
30
|
+
|
|
3
31
|
## [5.1.0](https://github.com/DarkSheepSoftware/eslint/compare/v5.0.0...v5.1.0) (2024-07-23)
|
|
4
32
|
|
|
5
33
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darksheep/eslint",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/DarkSheepSoftware/eslint"
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"eslint": "9.7.0",
|
|
39
39
|
"eslint-plugin-jsdoc": "48.8.3",
|
|
40
40
|
"eslint-plugin-jsonc": "2.16.0",
|
|
41
|
-
"eslint-plugin-n": "17.
|
|
41
|
+
"eslint-plugin-n": "17.10.1",
|
|
42
42
|
"eslint-plugin-package-json": "0.15.2",
|
|
43
43
|
"eslint-plugin-perfectionist": "3.0.0",
|
|
44
|
-
"eslint-plugin-promise": "
|
|
44
|
+
"eslint-plugin-promise": "7.0.0",
|
|
45
45
|
"eslint-plugin-react": "7.35.0",
|
|
46
46
|
"eslint-plugin-regexp": "2.6.0",
|
|
47
47
|
"eslint-plugin-security": "3.0.1",
|
|
48
|
-
"eslint-plugin-sonarjs": "1.0.
|
|
49
|
-
"eslint-plugin-unicorn": "
|
|
48
|
+
"eslint-plugin-sonarjs": "1.0.4",
|
|
49
|
+
"eslint-plugin-unicorn": "55.0.0",
|
|
50
50
|
"eslint-plugin-unused-imports": "4.0.1",
|
|
51
51
|
"jsonc-eslint-parser": "2.4.0"
|
|
52
52
|
},
|
|
@@ -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': [
|