@pumpn/eslint-config 15.1.5 → 15.2.0
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/config.js +10 -3
- package/deno.json +14 -16
- package/deno.lock +1779 -278
- package/package.json +17 -17
- package/plugins.js +1 -0
- package/rules/import-x/helpful-warnings.js +1 -0
- package/rules/perfectionist.js +20 -133
- package/rules/react/core.js +2 -1
- package/rules/react/hooks-extra.js +0 -1
- package/rules/react/naming-convention.js +3 -0
- package/rules/react/web-api.js +8 -0
- package/rules/stylistic/brackets.js +10 -2
- package/rules/stylistic/indent.js +4 -1
- package/rules/stylistic/jsx.js +1 -1
- package/rules/unicorn.js +3 -1
- package/scripts/update-import-map.js +1 -1
- package/tsconfig.json +2 -1
- package/import-map.json +0 -27
package/config.js
CHANGED
|
@@ -25,11 +25,11 @@ const defaultGlob = "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}";
|
|
|
25
25
|
const rulesDisabledInExamples = new Set([
|
|
26
26
|
"@eslint-react/no-leaked-conditional-rendering",
|
|
27
27
|
"@eslint-react/prefer-read-only-props",
|
|
28
|
+
"@stylistic/eol-last",
|
|
29
|
+
"@stylistic/line-comment-position",
|
|
28
30
|
"@stylistic/no-multiple-empty-lines",
|
|
29
31
|
"import-x/no-self-import",
|
|
30
|
-
"
|
|
31
|
-
"no-inline-comments",
|
|
32
|
-
"@stylistic/eol-last"
|
|
32
|
+
"no-inline-comments"
|
|
33
33
|
]);
|
|
34
34
|
|
|
35
35
|
const rulesWithAutofixDisabled = Object.fromEntries(
|
|
@@ -114,6 +114,13 @@ const config = [
|
|
|
114
114
|
name: "Link"
|
|
115
115
|
}
|
|
116
116
|
],
|
|
117
|
+
perfectionist: {
|
|
118
|
+
ignoreCase: false,
|
|
119
|
+
order: "asc",
|
|
120
|
+
partitionByComment: true,
|
|
121
|
+
partitionByNewLine: true,
|
|
122
|
+
type: "natural"
|
|
123
|
+
},
|
|
117
124
|
"react-x": {
|
|
118
125
|
jsxPragma: "h",
|
|
119
126
|
version: "18"
|
package/deno.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pumpn/eslint-config",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.2.0",
|
|
4
4
|
"exports": "./config.js",
|
|
5
5
|
"tasks": {
|
|
6
6
|
"lint": "deno run -A npm:eslint",
|
|
@@ -10,10 +10,8 @@
|
|
|
10
10
|
"update-tsconfig": "deno run -A ./scripts/update-tsconfig.js"
|
|
11
11
|
},
|
|
12
12
|
"compilerOptions": {
|
|
13
|
-
"allowJs": true,
|
|
14
13
|
"allowUnreachableCode": false,
|
|
15
14
|
"allowUnusedLabels": false,
|
|
16
|
-
"alwaysStrict": true,
|
|
17
15
|
"checkJs": true,
|
|
18
16
|
"exactOptionalPropertyTypes": true,
|
|
19
17
|
"jsx": "react-jsx",
|
|
@@ -39,32 +37,32 @@
|
|
|
39
37
|
]
|
|
40
38
|
},
|
|
41
39
|
"imports": {
|
|
42
|
-
"@eslint-community/eslint-plugin-eslint-comments": "npm:@eslint-community/eslint-plugin-eslint-comments@^4.
|
|
43
|
-
"@eslint-react/eslint-plugin": "npm:@eslint-react/eslint-plugin@^1.
|
|
40
|
+
"@eslint-community/eslint-plugin-eslint-comments": "npm:@eslint-community/eslint-plugin-eslint-comments@^4.4.0",
|
|
41
|
+
"@eslint-react/eslint-plugin": "npm:@eslint-react/eslint-plugin@^1.15.0",
|
|
44
42
|
"@std/path": "jsr:@std/path@^1",
|
|
45
|
-
"@stylistic/eslint-plugin": "npm:@stylistic/eslint-plugin@^2.
|
|
46
|
-
"@typescript-eslint/parser": "npm:@typescript-eslint/parser@^8.0
|
|
47
|
-
"eslint-plugin-depend": "npm:eslint-plugin-depend@^0.
|
|
43
|
+
"@stylistic/eslint-plugin": "npm:@stylistic/eslint-plugin@^2.9.0",
|
|
44
|
+
"@typescript-eslint/parser": "npm:@typescript-eslint/parser@^8.11.0",
|
|
45
|
+
"eslint-plugin-depend": "npm:eslint-plugin-depend@^0.11.0",
|
|
48
46
|
"eslint-plugin-disable-autofix": "npm:eslint-plugin-disable-autofix@^5.0.1",
|
|
49
47
|
"eslint-plugin-func-params-args": "npm:eslint-plugin-func-params-args@^4.0.0",
|
|
50
|
-
"eslint-plugin-import-x": "npm:eslint-plugin-import-x@^3.1
|
|
51
|
-
"eslint-plugin-jsdoc": "npm:eslint-plugin-jsdoc@^50.
|
|
48
|
+
"eslint-plugin-import-x": "npm:eslint-plugin-import-x@^4.3.1",
|
|
49
|
+
"eslint-plugin-jsdoc": "npm:eslint-plugin-jsdoc@^50.4.3",
|
|
52
50
|
"eslint-plugin-no-secrets": "npm:eslint-plugin-no-secrets@^1.0.2",
|
|
53
|
-
"eslint-plugin-perfectionist": "npm:eslint-plugin-perfectionist@^3.1
|
|
51
|
+
"eslint-plugin-perfectionist": "npm:eslint-plugin-perfectionist@^3.9.1",
|
|
54
52
|
"eslint-plugin-promise": "npm:eslint-plugin-promise@^7.1.0",
|
|
55
53
|
"eslint-plugin-react": "npm:eslint-plugin-react@^7.35.0",
|
|
56
54
|
"eslint-plugin-redos": "npm:eslint-plugin-redos@^4.4.5",
|
|
57
55
|
"eslint-plugin-regexp": "npm:eslint-plugin-regexp@^2.6.0",
|
|
58
56
|
"eslint-plugin-security": "npm:eslint-plugin-security@^3.0.1",
|
|
59
|
-
"eslint-plugin-sonarjs": "npm:eslint-plugin-sonarjs@^
|
|
60
|
-
"eslint-plugin-tailwindcss": "npm:eslint-plugin-tailwindcss@^3.17.
|
|
61
|
-
"eslint-plugin-unicorn": "npm:eslint-plugin-unicorn@^
|
|
62
|
-
"globals": "npm:globals@^15.
|
|
57
|
+
"eslint-plugin-sonarjs": "npm:eslint-plugin-sonarjs@^2.0.4",
|
|
58
|
+
"eslint-plugin-tailwindcss": "npm:eslint-plugin-tailwindcss@^3.17.5",
|
|
59
|
+
"eslint-plugin-unicorn": "npm:eslint-plugin-unicorn@^56.0.0",
|
|
60
|
+
"globals": "npm:globals@^15.11.0",
|
|
63
61
|
"preact": "https://esm.sh/*preact@10.19.3?dev",
|
|
64
62
|
"preact/jsx-runtime": "https://esm.sh/*preact@10.19.3/jsx-runtime?dev"
|
|
65
63
|
},
|
|
66
64
|
"exclude": [
|
|
67
65
|
"**/_fresh/*"
|
|
68
66
|
],
|
|
69
|
-
"nodeModulesDir":
|
|
67
|
+
"nodeModulesDir": "auto"
|
|
70
68
|
}
|