@pumpn/eslint-config 15.5.3 → 16.0.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 +11 -53
- package/deno.json +14 -13
- package/deno.lock +16 -4343
- package/package.json +21 -26
- package/plugins.js +2 -4
- package/rules/_exports.js +1 -1
- package/rules/command.js +12 -0
- package/rules/import-x/static-analysis.js +1 -1
- package/rules/import-x/style-guide.js +1 -6
- package/rules/jsdoc.js +2 -2
- package/rules/perfectionist.js +59 -49
- package/rules/regexp/best-practices.js +1 -2
- package/rules/unicorn.js +15 -10
- package/scripts/update-package-json.js +46 -0
- package/.tool-versions +0 -1
- package/rules/func-params-args.js +0 -18
package/config.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as parser from "@typescript-eslint/parser";
|
|
2
|
-
import { getJsdocProcessorPlugin } from "eslint-plugin-jsdoc/getJsdocProcessorPlugin.js";
|
|
3
2
|
import globals from "globals";
|
|
4
3
|
|
|
5
4
|
import plugins from "./plugins.js";
|
|
@@ -26,29 +25,6 @@ const convertedGlobals = Object.fromEntries(
|
|
|
26
25
|
|
|
27
26
|
const defaultGlob = "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}";
|
|
28
27
|
|
|
29
|
-
const rulesDisabledInExamples = new Set([
|
|
30
|
-
"@eslint-react/no-leaked-conditional-rendering",
|
|
31
|
-
"@eslint-react/prefer-read-only-props",
|
|
32
|
-
"@stylistic/eol-last",
|
|
33
|
-
"@stylistic/line-comment-position",
|
|
34
|
-
"@stylistic/no-multiple-empty-lines",
|
|
35
|
-
"import-x/no-self-import",
|
|
36
|
-
"no-inline-comments"
|
|
37
|
-
]);
|
|
38
|
-
|
|
39
|
-
const rulesWithAutofixDisabled = Object.fromEntries(
|
|
40
|
-
Object.entries(rules)
|
|
41
|
-
.flatMap(([key, value]) => [
|
|
42
|
-
[key, "off"],
|
|
43
|
-
[
|
|
44
|
-
`disable-autofix/${key}`,
|
|
45
|
-
rulesDisabledInExamples.has(key)
|
|
46
|
-
? "off"
|
|
47
|
-
: value
|
|
48
|
-
]
|
|
49
|
-
])
|
|
50
|
-
);
|
|
51
|
-
|
|
52
28
|
/**
|
|
53
29
|
* ESLint configuration.
|
|
54
30
|
*
|
|
@@ -173,6 +149,7 @@ const config = /** @type {const} */ ([
|
|
|
173
149
|
{
|
|
174
150
|
files: ["**/_exports.?(*.)js"],
|
|
175
151
|
rules: {
|
|
152
|
+
"@eslint-react/naming-convention/filename": "off",
|
|
176
153
|
"import-x/max-dependencies": "off",
|
|
177
154
|
"import-x/prefer-default-export": "off"
|
|
178
155
|
}
|
|
@@ -195,37 +172,18 @@ const config = /** @type {const} */ ([
|
|
|
195
172
|
}
|
|
196
173
|
},
|
|
197
174
|
{
|
|
198
|
-
files: [
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
checkParams: true,
|
|
205
|
-
checkProperties: true,
|
|
206
|
-
paddedIndent: 0,
|
|
207
|
-
parser,
|
|
208
|
-
sourceType: "module"
|
|
209
|
-
})
|
|
210
|
-
},
|
|
211
|
-
processor: "examples/examples"
|
|
175
|
+
files: ["**/*.doc.js"],
|
|
176
|
+
rules: {
|
|
177
|
+
"import-x/unambiguous": "off",
|
|
178
|
+
"unicorn/no-empty-file": "off",
|
|
179
|
+
"unicorn/prevent-abbreviations": "off"
|
|
180
|
+
}
|
|
212
181
|
},
|
|
213
182
|
{
|
|
214
|
-
files: [
|
|
215
|
-
|
|
216
|
-
"
|
|
217
|
-
|
|
218
|
-
"**/*.jsdoc-properties"
|
|
219
|
-
],
|
|
220
|
-
languageOptions: {
|
|
221
|
-
parserOptions: {
|
|
222
|
-
program: null,
|
|
223
|
-
project: false,
|
|
224
|
-
projectService: false
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
plugins,
|
|
228
|
-
rules: rulesWithAutofixDisabled
|
|
183
|
+
files: ["dev.js"],
|
|
184
|
+
rules: {
|
|
185
|
+
"unicorn/prevent-abbreviations": "off"
|
|
186
|
+
}
|
|
229
187
|
}
|
|
230
188
|
]);
|
|
231
189
|
|
package/deno.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pumpn/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"exports": "./config.js",
|
|
5
5
|
"tasks": {
|
|
6
6
|
"lint": "deno run -A npm:eslint",
|
|
7
7
|
"docs": "jsdoc --configure jsdoc.json",
|
|
8
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
|
+
"update-package-json": "deno run -A ./scripts/update-package-json.js",
|
|
10
11
|
"update-tsconfig": "deno run -A ./scripts/update-tsconfig.js"
|
|
11
12
|
},
|
|
12
13
|
"compilerOptions": {
|
|
@@ -38,31 +39,31 @@
|
|
|
38
39
|
},
|
|
39
40
|
"imports": {
|
|
40
41
|
"@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.
|
|
42
|
+
"@eslint-react/eslint-plugin": "npm:@eslint-react/eslint-plugin@^1.28.0",
|
|
42
43
|
"@std/path": "jsr:@std/path@^1",
|
|
43
|
-
"@stylistic/eslint-plugin": "npm:@stylistic/eslint-plugin@^
|
|
44
|
+
"@stylistic/eslint-plugin": "npm:@stylistic/eslint-plugin@^4.1.0",
|
|
44
45
|
"@typescript-eslint/parser": "npm:@typescript-eslint/parser@^8.11.0",
|
|
45
|
-
"eslint
|
|
46
|
-
"eslint-plugin-
|
|
47
|
-
"eslint-plugin-
|
|
46
|
+
"eslint": "npm:eslint@^9.21.0",
|
|
47
|
+
"eslint-plugin-command": "npm:eslint-plugin-command@^3.1.0",
|
|
48
|
+
"eslint-plugin-depend": "npm:eslint-plugin-depend@^0.12.0",
|
|
48
49
|
"eslint-plugin-import-x": "npm:eslint-plugin-import-x@^4.3.1",
|
|
49
50
|
"eslint-plugin-jsdoc": "npm:eslint-plugin-jsdoc@^50.4.3",
|
|
50
|
-
"eslint-plugin-no-secrets": "npm:eslint-plugin-no-secrets@^
|
|
51
|
-
"eslint-plugin-perfectionist": "npm:eslint-plugin-perfectionist@^
|
|
51
|
+
"eslint-plugin-no-secrets": "npm:eslint-plugin-no-secrets@^2.2.1",
|
|
52
|
+
"eslint-plugin-perfectionist": "npm:eslint-plugin-perfectionist@^4.8.0",
|
|
52
53
|
"eslint-plugin-promise": "npm:eslint-plugin-promise@^7.1.0",
|
|
53
54
|
"eslint-plugin-react": "npm:eslint-plugin-react@^7.35.0",
|
|
54
55
|
"eslint-plugin-redos": "npm:eslint-plugin-redos@^4.4.5",
|
|
55
56
|
"eslint-plugin-regexp": "npm:eslint-plugin-regexp@^2.6.0",
|
|
56
57
|
"eslint-plugin-security": "npm:eslint-plugin-security@^3.0.1",
|
|
57
|
-
"eslint-plugin-sonarjs": "npm:eslint-plugin-sonarjs@^
|
|
58
|
-
"eslint-plugin-tailwindcss": "npm:eslint-plugin-tailwindcss@^3.
|
|
59
|
-
"eslint-plugin-unicorn": "npm:eslint-plugin-unicorn@^
|
|
60
|
-
"globals": "npm:globals@^
|
|
58
|
+
"eslint-plugin-sonarjs": "npm:eslint-plugin-sonarjs@^3.0.1",
|
|
59
|
+
"eslint-plugin-tailwindcss": "npm:eslint-plugin-tailwindcss@^3.18.0",
|
|
60
|
+
"eslint-plugin-unicorn": "npm:eslint-plugin-unicorn@^57.0.0",
|
|
61
|
+
"globals": "npm:globals@^16.0.0",
|
|
61
62
|
"preact": "https://esm.sh/*preact@10.19.3?dev",
|
|
62
63
|
"preact/jsx-runtime": "https://esm.sh/*preact@10.19.3/jsx-runtime?dev"
|
|
63
64
|
},
|
|
64
65
|
"exclude": [
|
|
65
66
|
"**/_fresh/*"
|
|
66
67
|
],
|
|
67
|
-
"nodeModulesDir": "
|
|
68
|
+
"nodeModulesDir": "manual"
|
|
68
69
|
}
|