@kitschpatrol/eslint-config 5.0.5 → 5.0.6
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/bin/cli.js +9 -9
- package/dist/index.d.ts +1953 -435
- package/dist/index.js +29 -18
- package/package.json +19 -19
package/dist/index.js
CHANGED
|
@@ -1313,7 +1313,7 @@ var reactRecommendedTypeCheckedRules = {
|
|
|
1313
1313
|
"react/no-default-props": "error",
|
|
1314
1314
|
"react/no-direct-mutation-state": "error",
|
|
1315
1315
|
"react/no-duplicate-jsx-props": "off",
|
|
1316
|
-
"react/no-duplicate-key": "
|
|
1316
|
+
"react/no-duplicate-key": "warn",
|
|
1317
1317
|
"react/no-forward-ref": "warn",
|
|
1318
1318
|
"react/no-implicit-key": "warn",
|
|
1319
1319
|
"react/no-missing-key": "error",
|
|
@@ -1486,6 +1486,8 @@ var unicornRecommendedRules = {
|
|
|
1486
1486
|
"no-nested-ternary": "off",
|
|
1487
1487
|
"unicorn/better-regex": "off",
|
|
1488
1488
|
"unicorn/catch-error-name": "error",
|
|
1489
|
+
"unicorn/consistent-assert": "error",
|
|
1490
|
+
"unicorn/consistent-date-clone": "error",
|
|
1489
1491
|
"unicorn/consistent-destructuring": "off",
|
|
1490
1492
|
"unicorn/consistent-empty-array-spread": "error",
|
|
1491
1493
|
"unicorn/consistent-existence-index-check": "error",
|
|
@@ -1500,6 +1502,7 @@ var unicornRecommendedRules = {
|
|
|
1500
1502
|
"unicorn/import-style": "error",
|
|
1501
1503
|
"unicorn/new-for-builtins": "error",
|
|
1502
1504
|
"unicorn/no-abusive-eslint-disable": "error",
|
|
1505
|
+
"unicorn/no-accessor-recursion": "error",
|
|
1503
1506
|
"unicorn/no-anonymous-default-export": "error",
|
|
1504
1507
|
"unicorn/no-array-callback-reference": "error",
|
|
1505
1508
|
"unicorn/no-array-for-each": "error",
|
|
@@ -1513,13 +1516,14 @@ var unicornRecommendedRules = {
|
|
|
1513
1516
|
"unicorn/no-empty-file": "error",
|
|
1514
1517
|
"unicorn/no-for-loop": "error",
|
|
1515
1518
|
"unicorn/no-hex-escape": "error",
|
|
1516
|
-
"unicorn/no-instanceof-
|
|
1519
|
+
"unicorn/no-instanceof-builtins": "error",
|
|
1517
1520
|
"unicorn/no-invalid-fetch-options": "error",
|
|
1518
1521
|
"unicorn/no-invalid-remove-event-listener": "error",
|
|
1519
1522
|
"unicorn/no-keyword-prefix": "off",
|
|
1520
1523
|
"unicorn/no-length-as-slice-end": "error",
|
|
1521
1524
|
"unicorn/no-lonely-if": "error",
|
|
1522
1525
|
"unicorn/no-magic-array-flat-depth": "error",
|
|
1526
|
+
"unicorn/no-named-default": "error",
|
|
1523
1527
|
"unicorn/no-negated-condition": "error",
|
|
1524
1528
|
"unicorn/no-negation-in-equality-check": "error",
|
|
1525
1529
|
"unicorn/no-nested-ternary": "error",
|
|
@@ -2226,7 +2230,7 @@ var yamlRecommendedRules = {
|
|
|
2226
2230
|
// End expansion
|
|
2227
2231
|
};
|
|
2228
2232
|
|
|
2229
|
-
// src/
|
|
2233
|
+
// src/utilities.ts
|
|
2230
2234
|
import process2 from "node:process";
|
|
2231
2235
|
async function combine(...configs) {
|
|
2232
2236
|
const resolved = await Promise.all(configs);
|
|
@@ -2296,16 +2300,16 @@ function generatePerfectionistSortConfig(strings, options) {
|
|
|
2296
2300
|
}
|
|
2297
2301
|
|
|
2298
2302
|
// src/configs/shared-js-ts.ts
|
|
2299
|
-
import
|
|
2300
|
-
import
|
|
2303
|
+
import pluginEslintComments from "@eslint-community/eslint-plugin-eslint-comments";
|
|
2304
|
+
import pluginTs from "@typescript-eslint/eslint-plugin";
|
|
2301
2305
|
import { createTypeScriptImportResolver } from "eslint-import-resolver-typescript";
|
|
2302
2306
|
import * as pluginDepend from "eslint-plugin-depend";
|
|
2303
|
-
import
|
|
2304
|
-
import
|
|
2305
|
-
import
|
|
2306
|
-
import
|
|
2307
|
+
import pluginImport from "eslint-plugin-import-x";
|
|
2308
|
+
import pluginJsdocComments from "eslint-plugin-jsdoc";
|
|
2309
|
+
import pluginNode from "eslint-plugin-n";
|
|
2310
|
+
import pluginPerfectionist from "eslint-plugin-perfectionist";
|
|
2307
2311
|
import * as pluginRegexp from "eslint-plugin-regexp";
|
|
2308
|
-
import
|
|
2312
|
+
import pluginUnicorn from "eslint-plugin-unicorn";
|
|
2309
2313
|
var kpSharedDisableTypeCheckedRules = {
|
|
2310
2314
|
"jsdoc/check-tag-names": ["error", { typed: false }],
|
|
2311
2315
|
"jsdoc/no-types": "off"
|
|
@@ -2351,6 +2355,11 @@ var sharedScriptConfig = {
|
|
|
2351
2355
|
}
|
|
2352
2356
|
],
|
|
2353
2357
|
"eslint-comments/disable-enable-pair": ["error", { allowWholeFile: true }],
|
|
2358
|
+
// Overlaps with `unicorn/no-named-default`, and gives false positives for imports from CJS modules
|
|
2359
|
+
"import/default": "off",
|
|
2360
|
+
// Cope with Astro virtual modules
|
|
2361
|
+
// https://github.com/hannoeru/vite-plugin-pages/issues/41#issuecomment-1371880072
|
|
2362
|
+
"import/no-unresolved": ["error", { ignore: ["^astro:"] }],
|
|
2354
2363
|
"import/order": "off",
|
|
2355
2364
|
// Conflicts with perfectionist/sort-imports (but never enabled)
|
|
2356
2365
|
"jsdoc/require-description": ["error", { descriptionStyle: "body" }],
|
|
@@ -2496,6 +2505,8 @@ var sharedScriptConfig = {
|
|
|
2496
2505
|
props: false,
|
|
2497
2506
|
ref: false,
|
|
2498
2507
|
refs: false,
|
|
2508
|
+
sep: false,
|
|
2509
|
+
// Present in node:path library
|
|
2499
2510
|
src: false,
|
|
2500
2511
|
temp: false
|
|
2501
2512
|
}
|
|
@@ -2719,9 +2730,9 @@ async function disables() {
|
|
|
2719
2730
|
}
|
|
2720
2731
|
|
|
2721
2732
|
// src/configs/html.ts
|
|
2722
|
-
import
|
|
2723
|
-
import
|
|
2724
|
-
import
|
|
2733
|
+
import pluginHtml from "@html-eslint/eslint-plugin";
|
|
2734
|
+
import htmlParser from "@html-eslint/parser";
|
|
2735
|
+
import pluginHtmlScript from "eslint-plugin-html";
|
|
2725
2736
|
|
|
2726
2737
|
// src/presets/html.ts
|
|
2727
2738
|
var htmlRecommendedRules = {
|
|
@@ -3090,9 +3101,9 @@ async function js(options = {}) {
|
|
|
3090
3101
|
}
|
|
3091
3102
|
|
|
3092
3103
|
// src/configs/json.ts
|
|
3093
|
-
import
|
|
3104
|
+
import pluginJson from "eslint-plugin-jsonc";
|
|
3094
3105
|
import pluginJsonPackage from "eslint-plugin-package-json";
|
|
3095
|
-
import
|
|
3106
|
+
import parserJson from "jsonc-eslint-parser";
|
|
3096
3107
|
import { sortOrder as sortPackageJsonSortOrder } from "sort-package-json";
|
|
3097
3108
|
async function json(options = {}) {
|
|
3098
3109
|
const { overrides = {} } = options;
|
|
@@ -3319,7 +3330,7 @@ function customizeSortOrder(keys, newKeys) {
|
|
|
3319
3330
|
}
|
|
3320
3331
|
|
|
3321
3332
|
// src/configs/shared-jsx-tsx.ts
|
|
3322
|
-
import
|
|
3333
|
+
import pluginJsxA11y from "eslint-plugin-jsx-a11y";
|
|
3323
3334
|
var sharedJsxTsxConfig = {
|
|
3324
3335
|
// TODO inherit from ...sharedScriptConfig?
|
|
3325
3336
|
plugins: {
|
|
@@ -3698,8 +3709,8 @@ async function svelte(options = {}) {
|
|
|
3698
3709
|
}
|
|
3699
3710
|
|
|
3700
3711
|
// src/configs/test.ts
|
|
3701
|
-
import
|
|
3702
|
-
import
|
|
3712
|
+
import pluginTest from "@vitest/eslint-plugin";
|
|
3713
|
+
import pluginNoOnlyTests from "eslint-plugin-no-only-tests";
|
|
3703
3714
|
import globals3 from "globals";
|
|
3704
3715
|
var _pluginTest;
|
|
3705
3716
|
async function test(options = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/eslint-config",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.6",
|
|
4
4
|
"description": "ESLint configuration for @kitschpatrol/shared-config.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shared-config",
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
45
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
46
|
-
"@html-eslint/eslint-plugin": "^0.
|
|
47
|
-
"@html-eslint/parser": "^0.
|
|
45
|
+
"@eslint-react/eslint-plugin": "^1.27.0",
|
|
46
|
+
"@html-eslint/eslint-plugin": "^0.35.0",
|
|
47
|
+
"@html-eslint/parser": "^0.35.0",
|
|
48
48
|
"@pinojs/json-colorizer": "^4.0.0",
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
50
|
-
"@typescript-eslint/parser": "^8.
|
|
51
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "^8.25.0",
|
|
50
|
+
"@typescript-eslint/parser": "^8.25.0",
|
|
51
|
+
"@vitest/eslint-plugin": "^1.1.33",
|
|
52
52
|
"astro-eslint-parser": "^1.2.1",
|
|
53
|
-
"eslint": "^9.
|
|
54
|
-
"eslint-config-flat-gitignore": "^2.
|
|
53
|
+
"eslint": "^9.21.0",
|
|
54
|
+
"eslint-config-flat-gitignore": "^2.1.0",
|
|
55
55
|
"eslint-flat-config-utils": "^2.0.1",
|
|
56
|
-
"eslint-import-resolver-typescript": "^3.
|
|
56
|
+
"eslint-import-resolver-typescript": "^3.8.3",
|
|
57
57
|
"eslint-mdx": "^3.1.5",
|
|
58
58
|
"eslint-plugin-astro": "^1.3.1",
|
|
59
59
|
"eslint-plugin-depend": "^0.12.0",
|
|
@@ -65,20 +65,20 @@
|
|
|
65
65
|
"eslint-plugin-mdx": "^3.1.5",
|
|
66
66
|
"eslint-plugin-n": "^17.15.1",
|
|
67
67
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
68
|
-
"eslint-plugin-package-json": "^0.
|
|
69
|
-
"eslint-plugin-perfectionist": "^4.
|
|
68
|
+
"eslint-plugin-package-json": "^0.26.0",
|
|
69
|
+
"eslint-plugin-perfectionist": "^4.9.0",
|
|
70
70
|
"eslint-plugin-regexp": "^2.7.0",
|
|
71
71
|
"eslint-plugin-svelte": "^2.46.1",
|
|
72
72
|
"eslint-plugin-toml": "^0.12.0",
|
|
73
|
-
"eslint-plugin-unicorn": "^
|
|
74
|
-
"eslint-plugin-yml": "^1.
|
|
73
|
+
"eslint-plugin-unicorn": "^57.0.0",
|
|
74
|
+
"eslint-plugin-yml": "^1.17.0",
|
|
75
75
|
"execa": "^9.5.2",
|
|
76
76
|
"find-workspaces": "^0.3.1",
|
|
77
77
|
"fs-extra": "^11.3.0",
|
|
78
|
-
"globals": "^
|
|
78
|
+
"globals": "^16.0.0",
|
|
79
79
|
"jsonc-eslint-parser": "^2.4.0",
|
|
80
80
|
"local-pkg": "^1.0.0",
|
|
81
|
-
"prettier": "^3.5.
|
|
81
|
+
"prettier": "^3.5.2",
|
|
82
82
|
"sort-package-json": "^2.14.0",
|
|
83
83
|
"svelte-eslint-parser": "^0.43.0",
|
|
84
84
|
"toml-eslint-parser": "^0.10.0",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"dot-prop": "^9.0.0",
|
|
91
91
|
"eslint-config-prettier": "^10.0.1",
|
|
92
92
|
"eslint-config-xo-typescript": "^7.0.0",
|
|
93
|
-
"eslint-typegen": "^
|
|
94
|
-
"svelte": "^5.
|
|
95
|
-
"tsup": "^8.
|
|
93
|
+
"eslint-typegen": "^2.0.0",
|
|
94
|
+
"svelte": "^5.20.4",
|
|
95
|
+
"tsup": "^8.4.0"
|
|
96
96
|
},
|
|
97
97
|
"engines": {
|
|
98
98
|
"node": ">=22.13.1",
|