@darksheep/eslint 6.7.0 → 6.7.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 +15 -0
- package/package.json +4 -4
- package/src/plugins/perfectionist.js +17 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [6.7.2](https://github.com/DarkSheepSoftware/eslint/compare/v6.7.1...v6.7.2) (2024-11-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 📦 Dependencies
|
|
7
|
+
|
|
8
|
+
* **pkg:** update dependency @eslint/js to v9.16.0 ([#761](https://github.com/DarkSheepSoftware/eslint/issues/761)) ([180ea5f](https://github.com/DarkSheepSoftware/eslint/commit/180ea5f8bfd96a94a756696e0702378696515d8e))
|
|
9
|
+
* **pkg:** update dependency eslint-plugin-package-json to v0.16.0 ([#764](https://github.com/DarkSheepSoftware/eslint/issues/764)) ([6476f1b](https://github.com/DarkSheepSoftware/eslint/commit/6476f1bd2000cbb4778ad9dc8df88bbc8f8d37b3))
|
|
10
|
+
|
|
11
|
+
## [6.7.1](https://github.com/DarkSheepSoftware/eslint/compare/v6.7.0...v6.7.1) (2024-11-28)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### 🩹 Fixes
|
|
15
|
+
|
|
16
|
+
* Move types to the top of the file ([b6089d0](https://github.com/DarkSheepSoftware/eslint/commit/b6089d0817961d80d3b496a46e7750e83a482bb0))
|
|
17
|
+
|
|
3
18
|
## [6.7.0](https://github.com/DarkSheepSoftware/eslint/compare/v6.6.10...v6.7.0) (2024-11-28)
|
|
4
19
|
|
|
5
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darksheep/eslint",
|
|
3
|
-
"version": "6.7.
|
|
3
|
+
"version": "6.7.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/DarkSheepSoftware/eslint"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@darksheep/environment": "3.1.0",
|
|
26
26
|
"@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
|
|
27
|
-
"@eslint/js": "9.
|
|
27
|
+
"@eslint/js": "9.16.0",
|
|
28
28
|
"@stylistic/eslint-plugin": "2.11.0",
|
|
29
29
|
"@typescript-eslint/eslint-plugin": "8.16.0",
|
|
30
30
|
"@typescript-eslint/parser": "8.16.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"eslint-plugin-jsdoc": "50.6.0",
|
|
33
33
|
"eslint-plugin-jsonc": "2.18.2",
|
|
34
34
|
"eslint-plugin-n": "17.14.0",
|
|
35
|
-
"eslint-plugin-package-json": "0.
|
|
35
|
+
"eslint-plugin-package-json": "0.16.0",
|
|
36
36
|
"eslint-plugin-perfectionist": "4.1.2",
|
|
37
37
|
"eslint-plugin-promise": "7.2.1",
|
|
38
38
|
"eslint-plugin-react": "7.37.2",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@darksheep/eslint-formatter-github": "2.0.1",
|
|
49
49
|
"@types/node": "~22.10.0",
|
|
50
|
-
"eslint": "~9.
|
|
50
|
+
"eslint": "~9.16.0",
|
|
51
51
|
"type-fest": "~4.29.0",
|
|
52
52
|
"typescript": "~5.7.0"
|
|
53
53
|
},
|
|
@@ -6,20 +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
9
|
/** @type {import('eslint').Linter.RulesRecord} */
|
|
24
10
|
const commonRules = {
|
|
25
11
|
'perfectionist/sort-classes': [
|
|
@@ -27,7 +13,19 @@ const commonRules = {
|
|
|
27
13
|
{
|
|
28
14
|
type: 'natural',
|
|
29
15
|
order: 'asc',
|
|
30
|
-
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
|
+
],
|
|
31
29
|
},
|
|
32
30
|
],
|
|
33
31
|
'perfectionist/sort-array-includes': 0,
|
|
@@ -51,9 +49,10 @@ const moduleRules = {
|
|
|
51
49
|
order: 'asc',
|
|
52
50
|
newlinesBetween: 'always',
|
|
53
51
|
groups: [
|
|
54
|
-
[ '
|
|
55
|
-
[ '
|
|
56
|
-
[ '
|
|
52
|
+
[ 'type' ],
|
|
53
|
+
[ 'builtin' ],
|
|
54
|
+
[ 'external' ],
|
|
55
|
+
[ 'internal' ],
|
|
57
56
|
[ 'parent-type', 'sibling-type', 'index-type' ],
|
|
58
57
|
[ 'parent', 'sibling', 'index' ],
|
|
59
58
|
'object',
|