@pumpn/eslint-config 15.3.0 → 15.5.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/deno.json +2 -2
- package/deno.lock +1 -8
- package/package.json +2 -2
- package/rules/perfectionist.js +23 -13
package/deno.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pumpn/eslint-config",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.5.1",
|
|
4
4
|
"exports": "./config.js",
|
|
5
5
|
"tasks": {
|
|
6
6
|
"lint": "deno run -A npm:eslint",
|
|
7
7
|
"docs": "jsdoc --configure jsdoc.json",
|
|
8
|
-
"publish": "VERSION=$(cat deno.json | jq -r .version) && git tag -a \"v$VERSION\" -m \"\" && git push origin \"v$VERSION\" && deno publish --no-check && npm publish",
|
|
8
|
+
"publish": "deno task lint && VERSION=$(cat deno.json | jq -r .version) && git tag -a \"v$VERSION\" -m \"\" && git push origin \"v$VERSION\" && deno publish --no-check && npm publish",
|
|
9
9
|
"update-import-map": "deno run -A ./scripts/update-import-map.js",
|
|
10
10
|
"update-tsconfig": "deno run -A ./scripts/update-tsconfig.js"
|
|
11
11
|
},
|
package/deno.lock
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "4",
|
|
3
3
|
"specifiers": {
|
|
4
|
-
"jsr:@std/path@1": "1.0.6",
|
|
5
4
|
"npm:@eslint-community/eslint-plugin-eslint-comments@^4.4.0": "4.4.0_eslint@9.13.0",
|
|
6
5
|
"npm:@eslint-react/eslint-plugin@^1.15.0": "1.15.0_eslint@9.13.0",
|
|
7
6
|
"npm:@stylistic/eslint-plugin@^2.9.0": "2.9.0_eslint@9.13.0",
|
|
@@ -23,13 +22,7 @@
|
|
|
23
22
|
"npm:eslint-plugin-unicorn@56": "56.0.0_eslint@9.13.0",
|
|
24
23
|
"npm:eslint@*": "9.13.0",
|
|
25
24
|
"npm:eslint@^9.13.0": "9.13.0",
|
|
26
|
-
"npm:globals@^15.11.0": "15.11.0"
|
|
27
|
-
"npm:globals@^15.9.0": "15.11.0"
|
|
28
|
-
},
|
|
29
|
-
"jsr": {
|
|
30
|
-
"@std/path@1.0.6": {
|
|
31
|
-
"integrity": "ab2c55f902b380cf28e0eec501b4906e4c1960d13f00e11cfbcd21de15f18fed"
|
|
32
|
-
}
|
|
25
|
+
"npm:globals@^15.11.0": "15.11.0"
|
|
33
26
|
},
|
|
34
27
|
"npm": {
|
|
35
28
|
"@alloc/quick-lru@5.2.0": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pumpn/eslint-config",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.5.1",
|
|
4
4
|
"description": "standard eslint config for pumpn code projects",
|
|
5
5
|
"main": "config.js",
|
|
6
6
|
"author": "Nano Miratus <nanomiratus@gmail.com>",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"globals": "^15.11.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"eslint": "^9.
|
|
44
|
+
"eslint": "^9.13.0"
|
|
45
45
|
},
|
|
46
46
|
"overrides": {
|
|
47
47
|
"@typescript-eslint/type-utils": "^8.11.0",
|
package/rules/perfectionist.js
CHANGED
|
@@ -10,19 +10,29 @@ const perfectionistRules = {
|
|
|
10
10
|
{
|
|
11
11
|
groups: [
|
|
12
12
|
"index-signature",
|
|
13
|
-
"static-property",
|
|
14
|
-
"
|
|
15
|
-
"property",
|
|
16
|
-
"
|
|
17
|
-
"static-
|
|
18
|
-
"static-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"method",
|
|
22
|
-
"function-property",
|
|
13
|
+
["static-property", "static-accessor-property"],
|
|
14
|
+
["static-get-method", "static-set-method"],
|
|
15
|
+
["protected-static-property", "protected-static-accessor-property"],
|
|
16
|
+
["protected-static-get-method", "protected-static-set-method"],
|
|
17
|
+
["private-static-property", "private-static-accessor-property"],
|
|
18
|
+
["private-static-get-method", "private-static-set-method"],
|
|
19
|
+
"static-block",
|
|
20
|
+
["property", "accessor-property"],
|
|
23
21
|
["get-method", "set-method"],
|
|
22
|
+
["protected-property", "protected-accessor-property"],
|
|
23
|
+
["protected-get-method", "protected-set-method"],
|
|
24
|
+
["private-property", "private-accessor-property"],
|
|
25
|
+
["private-get-method", "private-set-method"],
|
|
26
|
+
"constructor",
|
|
27
|
+
["static-method", "static-function-property"],
|
|
28
|
+
["protected-static-method", "protected-static-function-property"],
|
|
29
|
+
["private-static-method", "private-static-function-property"],
|
|
30
|
+
["method", "function-property"],
|
|
31
|
+
["protected-method", "protected-function-property"],
|
|
32
|
+
["private-method", "private-function-property"],
|
|
24
33
|
"unknown"
|
|
25
|
-
]
|
|
34
|
+
],
|
|
35
|
+
partitionByComment: false
|
|
26
36
|
}
|
|
27
37
|
],
|
|
28
38
|
"perfectionist/sort-enums": ["error"],
|
|
@@ -81,7 +91,7 @@ const perfectionistRules = {
|
|
|
81
91
|
],
|
|
82
92
|
"perfectionist/sort-maps": ["error"],
|
|
83
93
|
"perfectionist/sort-named-exports": ["error"],
|
|
84
|
-
"perfectionist/sort-named-imports": ["error"],
|
|
94
|
+
"perfectionist/sort-named-imports": ["error", { partitionByComment: false }],
|
|
85
95
|
"perfectionist/sort-object-types": ["error"],
|
|
86
96
|
"perfectionist/sort-objects": [
|
|
87
97
|
"error",
|
|
@@ -172,7 +182,7 @@ const perfectionistRules = {
|
|
|
172
182
|
"perfectionist/sort-sets": ["error"],
|
|
173
183
|
"perfectionist/sort-switch-case": ["error"],
|
|
174
184
|
"perfectionist/sort-union-types": ["error"],
|
|
175
|
-
"perfectionist/sort-variable-declarations": ["error"]
|
|
185
|
+
"perfectionist/sort-variable-declarations": ["error", { partitionByComment: false }]
|
|
176
186
|
};
|
|
177
187
|
|
|
178
188
|
export default perfectionistRules;
|