@pumpn/eslint-config 15.5.2 → 15.6.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/config.js +29 -2
- package/deno.json +9 -8
- package/deno.lock +1047 -1375
- package/package.json +11 -15
- package/plugins.js +23 -6
- package/rules/depend.js +7 -0
- package/rules/eslint-comments.js +7 -0
- package/rules/func-params-args.js +8 -0
- package/rules/github.js +7 -0
- package/rules/import-x/static-analysis.js +1 -1
- package/rules/import-x.js +7 -0
- package/rules/jsdoc.js +8 -1
- package/rules/jsx-a11y.js +7 -0
- package/rules/layout-and-formatting.js +7 -0
- package/rules/no-secrets.js +7 -0
- package/rules/no-unsanitized.js +7 -0
- package/rules/perfectionist.js +56 -48
- package/rules/possible-problems.js +7 -0
- package/rules/promise.js +7 -0
- package/rules/react.js +7 -0
- package/rules/redos.js +7 -0
- package/rules/regexp/best-practices.js +1 -2
- package/rules/regexp.js +7 -0
- package/rules/security.js +7 -0
- package/rules/sonarjs.js +7 -0
- package/rules/stylistic.js +7 -0
- package/rules/suggestions.js +7 -0
- package/rules/tailwindcss.js +7 -0
- package/rules/unicorn.js +17 -10
- package/rules.js +8 -1
- package/scripts/update-package-json.js +46 -0
package/config.js
CHANGED
|
@@ -5,6 +5,10 @@ import globals from "globals";
|
|
|
5
5
|
import plugins from "./plugins.js";
|
|
6
6
|
import rules from "./rules.js";
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* @import { Linter } from "eslint"
|
|
10
|
+
*/
|
|
11
|
+
|
|
8
12
|
const cssFilesRefreshRate = 5_000;
|
|
9
13
|
|
|
10
14
|
const convertedGlobals = Object.fromEntries(
|
|
@@ -45,7 +49,15 @@ const rulesWithAutofixDisabled = Object.fromEntries(
|
|
|
45
49
|
])
|
|
46
50
|
);
|
|
47
51
|
|
|
48
|
-
|
|
52
|
+
/**
|
|
53
|
+
* ESLint configuration.
|
|
54
|
+
*
|
|
55
|
+
* This configuration includes settings for various file types, plugins, and rules.
|
|
56
|
+
* It also defines specific settings for different environments and file patterns.
|
|
57
|
+
*
|
|
58
|
+
* @satisfies {Linter.Config[]}
|
|
59
|
+
*/
|
|
60
|
+
const config = /** @type {const} */ ([
|
|
49
61
|
{
|
|
50
62
|
ignores: [
|
|
51
63
|
"_fresh/**",
|
|
@@ -161,6 +173,7 @@ const config = [
|
|
|
161
173
|
{
|
|
162
174
|
files: ["**/_exports.?(*.)js"],
|
|
163
175
|
rules: {
|
|
176
|
+
"@eslint-react/naming-convention/filename": "off",
|
|
164
177
|
"import-x/max-dependencies": "off",
|
|
165
178
|
"import-x/prefer-default-export": "off"
|
|
166
179
|
}
|
|
@@ -214,7 +227,21 @@ const config = [
|
|
|
214
227
|
},
|
|
215
228
|
plugins,
|
|
216
229
|
rules: rulesWithAutofixDisabled
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
files: ["**/*.doc.js"],
|
|
233
|
+
rules: {
|
|
234
|
+
"import-x/unambiguous": "off",
|
|
235
|
+
"unicorn/no-empty-file": "off",
|
|
236
|
+
"unicorn/prevent-abbreviations": "off"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
files: ["dev.js"],
|
|
241
|
+
rules: {
|
|
242
|
+
"unicorn/prevent-abbreviations": "off"
|
|
243
|
+
}
|
|
217
244
|
}
|
|
218
|
-
];
|
|
245
|
+
]);
|
|
219
246
|
|
|
220
247
|
export default config;
|
package/deno.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pumpn/eslint-config",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.6.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
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": {
|
|
@@ -40,24 +41,24 @@
|
|
|
40
41
|
"@eslint-community/eslint-plugin-eslint-comments": "npm:@eslint-community/eslint-plugin-eslint-comments@^4.4.0",
|
|
41
42
|
"@eslint-react/eslint-plugin": "npm:@eslint-react/eslint-plugin@^1.15.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@^3.0.1",
|
|
44
45
|
"@typescript-eslint/parser": "npm:@typescript-eslint/parser@^8.11.0",
|
|
45
|
-
"eslint-plugin-depend": "npm:eslint-plugin-depend@^0.
|
|
46
|
+
"eslint-plugin-depend": "npm:eslint-plugin-depend@^0.12.0",
|
|
46
47
|
"eslint-plugin-disable-autofix": "npm:eslint-plugin-disable-autofix@^5.0.1",
|
|
47
48
|
"eslint-plugin-func-params-args": "npm:eslint-plugin-func-params-args@^4.0.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.
|
|
58
|
+
"eslint-plugin-sonarjs": "npm:eslint-plugin-sonarjs@^3.0.1",
|
|
59
|
+
"eslint-plugin-tailwindcss": "npm:eslint-plugin-tailwindcss@^3.18.0",
|
|
59
60
|
"eslint-plugin-unicorn": "npm:eslint-plugin-unicorn@^56.0.0",
|
|
60
|
-
"globals": "npm:globals@^15.
|
|
61
|
+
"globals": "npm:globals@^15.14.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
|
},
|