@pumpn/eslint-config 14.0.0 → 14.0.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/config.js +7 -1
- package/deno.json +1 -1
- package/deno.lock +25 -0
- package/eslint.config.js +19 -0
- package/import-map.json +1 -0
- package/package.json +2 -1
- package/plugins.js +2 -0
- package/rules/_exports.js +1 -0
- package/rules/func-params-args.js +11 -0
- package/rules/suggestions.js +1 -1
- package/tsconfig.json +4 -1
package/config.js
CHANGED
|
@@ -46,7 +46,7 @@ const config = [
|
|
|
46
46
|
project: "./tsconfig.json",
|
|
47
47
|
requireConfigFile: false,
|
|
48
48
|
sourceType: "module",
|
|
49
|
-
tsconfigRootDir:
|
|
49
|
+
tsconfigRootDir: "./"
|
|
50
50
|
},
|
|
51
51
|
sourceType: "module"
|
|
52
52
|
},
|
|
@@ -141,6 +141,12 @@ const config = [
|
|
|
141
141
|
"import-x/no-unused-modules": "off",
|
|
142
142
|
"import-x/unambiguous": "off"
|
|
143
143
|
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
files: ["**/*.{ts,tsx}"],
|
|
147
|
+
rules: {
|
|
148
|
+
"no-undef": "off"
|
|
149
|
+
}
|
|
144
150
|
}
|
|
145
151
|
];
|
|
146
152
|
|
package/deno.json
CHANGED
package/deno.lock
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"npm:@typescript-eslint/parser@^8.0.0-alpha.47": "npm:@typescript-eslint/parser@8.0.0-alpha.47_eslint@9.7.0",
|
|
11
11
|
"npm:eslint": "npm:eslint@9.7.0",
|
|
12
12
|
"npm:eslint-plugin-depend@^0.9.0": "npm:eslint-plugin-depend@0.9.0",
|
|
13
|
+
"npm:eslint-plugin-func-params-args@^4.0.0": "npm:eslint-plugin-func-params-args@4.0.0_eslint@8.57.0",
|
|
13
14
|
"npm:eslint-plugin-import-x@^3.0.1": "npm:eslint-plugin-import-x@3.0.1_eslint@9.7.0",
|
|
14
15
|
"npm:eslint-plugin-jsdoc@^48.7.0": "npm:eslint-plugin-jsdoc@48.8.3_eslint@9.7.0",
|
|
15
16
|
"npm:eslint-plugin-jsdoc@^48.8.3": "npm:eslint-plugin-jsdoc@48.8.3_eslint@9.7.0",
|
|
@@ -1053,6 +1054,14 @@
|
|
|
1053
1054
|
"semver": "semver@7.6.3"
|
|
1054
1055
|
}
|
|
1055
1056
|
},
|
|
1057
|
+
"eslint-plugin-func-params-args@4.0.0_eslint@8.57.0": {
|
|
1058
|
+
"integrity": "sha512-PuPB2cibwxkpjDuCFyA4cJj/6xTpbLHfCr6QCQ8Y0U/N4dqhXfdi941nyzpjxrXSHj5UKDMP9aTFFaUZ5FgjlA==",
|
|
1059
|
+
"dependencies": {
|
|
1060
|
+
"eslint": "eslint@8.57.0",
|
|
1061
|
+
"eslint-utils": "eslint-utils@3.0.0_eslint@8.57.0",
|
|
1062
|
+
"requireindex": "requireindex@1.2.0"
|
|
1063
|
+
}
|
|
1064
|
+
},
|
|
1056
1065
|
"eslint-plugin-import-x@3.0.1_eslint@9.7.0": {
|
|
1057
1066
|
"integrity": "sha512-jzQgJuE4ssxwNi0aMBkOL8whd4eHb0Z/uFWsk8uEoYB7xwTkAptSKojLzRswxgf/1bhH6QgcLjgabUBQqluBIg==",
|
|
1058
1067
|
"dependencies": {
|
|
@@ -1291,6 +1300,17 @@
|
|
|
1291
1300
|
"estraverse": "estraverse@5.3.0"
|
|
1292
1301
|
}
|
|
1293
1302
|
},
|
|
1303
|
+
"eslint-utils@3.0.0_eslint@8.57.0": {
|
|
1304
|
+
"integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==",
|
|
1305
|
+
"dependencies": {
|
|
1306
|
+
"eslint": "eslint@8.57.0",
|
|
1307
|
+
"eslint-visitor-keys": "eslint-visitor-keys@2.1.0"
|
|
1308
|
+
}
|
|
1309
|
+
},
|
|
1310
|
+
"eslint-visitor-keys@2.1.0": {
|
|
1311
|
+
"integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==",
|
|
1312
|
+
"dependencies": {}
|
|
1313
|
+
},
|
|
1294
1314
|
"eslint-visitor-keys@3.4.3": {
|
|
1295
1315
|
"integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
|
|
1296
1316
|
"dependencies": {}
|
|
@@ -2445,6 +2465,10 @@
|
|
|
2445
2465
|
"jsesc": "jsesc@0.5.0"
|
|
2446
2466
|
}
|
|
2447
2467
|
},
|
|
2468
|
+
"requireindex@1.2.0": {
|
|
2469
|
+
"integrity": "sha512-L9jEkOi3ASd9PYit2cwRfyppc9NoABujTP8/5gFcbERmo5jUoAKovIC3fsF17pkTnGsrByysqX+Kxd2OTNI1ww==",
|
|
2470
|
+
"dependencies": {}
|
|
2471
|
+
},
|
|
2448
2472
|
"resolve-from@4.0.0": {
|
|
2449
2473
|
"integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
|
|
2450
2474
|
"dependencies": {}
|
|
@@ -3012,6 +3036,7 @@
|
|
|
3012
3036
|
"npm:@stylistic/eslint-plugin@^2.3.0",
|
|
3013
3037
|
"npm:@typescript-eslint/parser@^8.0.0-alpha.47",
|
|
3014
3038
|
"npm:eslint-plugin-depend@^0.9.0",
|
|
3039
|
+
"npm:eslint-plugin-func-params-args@^4.0.0",
|
|
3015
3040
|
"npm:eslint-plugin-import-x@^3.0.1",
|
|
3016
3041
|
"npm:eslint-plugin-jsdoc@^48.8.3",
|
|
3017
3042
|
"npm:eslint-plugin-no-secrets@^1.0.2",
|
package/eslint.config.js
CHANGED
|
@@ -7,6 +7,25 @@ const eslintConfig = [
|
|
|
7
7
|
rules: {
|
|
8
8
|
"unicorn/string-content": "off"
|
|
9
9
|
}
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
files: [
|
|
13
|
+
"plugins.js",
|
|
14
|
+
"rules/_exports.js",
|
|
15
|
+
"rules/func-params-args.js"
|
|
16
|
+
],
|
|
17
|
+
rules: {
|
|
18
|
+
"unicorn/prevent-abbreviations": [
|
|
19
|
+
"error",
|
|
20
|
+
{
|
|
21
|
+
allowList: {
|
|
22
|
+
"func-params-args": true,
|
|
23
|
+
funcParamsArgs: true,
|
|
24
|
+
funcParamsArgsRules: true
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
10
29
|
}
|
|
11
30
|
];
|
|
12
31
|
|
package/import-map.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"@stylistic/eslint-plugin": "npm:@stylistic/eslint-plugin@^2.3.0",
|
|
7
7
|
"@typescript-eslint/parser": "npm:@typescript-eslint/parser@^8.0.0-alpha.47",
|
|
8
8
|
"eslint-plugin-depend": "npm:eslint-plugin-depend@^0.9.0",
|
|
9
|
+
"eslint-plugin-func-params-args": "npm:eslint-plugin-func-params-args@^4.0.0",
|
|
9
10
|
"eslint-plugin-import-x": "npm:eslint-plugin-import-x@^3.0.1",
|
|
10
11
|
"eslint-plugin-jsdoc": "npm:eslint-plugin-jsdoc@^48.8.3",
|
|
11
12
|
"eslint-plugin-no-secrets": "npm:eslint-plugin-no-secrets@^1.0.2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pumpn/eslint-config",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.2",
|
|
4
4
|
"description": "standard eslint config for pumpn code projects",
|
|
5
5
|
"main": "config.js",
|
|
6
6
|
"author": "Nano Miratus <nanomiratus@gmail.com>",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"@stylistic/eslint-plugin": "^2.3.0",
|
|
26
26
|
"@typescript-eslint/parser": "^8.0.0-alpha.47",
|
|
27
27
|
"eslint-plugin-depend": "^0.9.0",
|
|
28
|
+
"eslint-plugin-func-params-args": "^4.0.0",
|
|
28
29
|
"eslint-plugin-import-x": "^3.0.1",
|
|
29
30
|
"eslint-plugin-jsdoc": "^48.8.3",
|
|
30
31
|
"eslint-plugin-no-secrets": "^1.0.2",
|
package/plugins.js
CHANGED
|
@@ -3,6 +3,7 @@ import eslintComments from "@eslint-community/eslint-plugin-eslint-comments";
|
|
|
3
3
|
import react from "@eslint-react/eslint-plugin";
|
|
4
4
|
import stylistic from "@stylistic/eslint-plugin";
|
|
5
5
|
import depend from "eslint-plugin-depend";
|
|
6
|
+
import funcParamsArgs from "eslint-plugin-func-params-args";
|
|
6
7
|
// import github from "eslint-plugin-github";
|
|
7
8
|
import importX from "eslint-plugin-import-x";
|
|
8
9
|
import jsdoc from "eslint-plugin-jsdoc";
|
|
@@ -28,6 +29,7 @@ const plugins = {
|
|
|
28
29
|
"no-secrets": noSecrets,
|
|
29
30
|
// "no-unsanitized": noUnsanitized,
|
|
30
31
|
depend,
|
|
32
|
+
"func-params-args": funcParamsArgs,
|
|
31
33
|
perfectionist,
|
|
32
34
|
promise,
|
|
33
35
|
react,
|
package/rules/_exports.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as dependRules } from "./depend.js";
|
|
2
2
|
export { default as eslintCommentsRules } from "./eslint-comments.js";
|
|
3
|
+
export { default as funcParamsArgsRules } from "./func-params-args.js";
|
|
3
4
|
// export { default as githubRules } from "./github.js";
|
|
4
5
|
export { default as importXRules } from "./import-x.js";
|
|
5
6
|
export { default as jsdocRules } from "./jsdoc.js";
|
package/rules/suggestions.js
CHANGED
|
@@ -28,7 +28,7 @@ const suggestionsRules = {
|
|
|
28
28
|
}
|
|
29
29
|
],
|
|
30
30
|
"max-nested-callbacks": ["error", maxNestedCallbacks],
|
|
31
|
-
"max-params": ["
|
|
31
|
+
"max-params": ["off", maxParameters],
|
|
32
32
|
"max-statements": ["error", { max: maxStatements }],
|
|
33
33
|
"accessor-pairs": "error",
|
|
34
34
|
"arrow-body-style": "error",
|