@kitschpatrol/eslint-config 5.4.0 → 5.4.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.
Files changed (4) hide show
  1. package/bin/cli.js +102 -528
  2. package/dist/index.d.ts +912 -536
  3. package/dist/index.js +28 -19
  4. package/package.json +28 -28
package/dist/index.js CHANGED
@@ -302,8 +302,8 @@ var eslintTypescriptRecommendedOverridesRules = {
302
302
  "no-dupe-keys": "off",
303
303
  "no-func-assign": "off",
304
304
  "no-import-assign": "off",
305
- "no-new-symbol": "off",
306
305
  "no-new-native-nonconstructor": "off",
306
+ "no-new-symbol": "off",
307
307
  "no-obj-calls": "off",
308
308
  "no-redeclare": "off",
309
309
  "no-setter-return": "off",
@@ -312,6 +312,7 @@ var eslintTypescriptRecommendedOverridesRules = {
312
312
  "no-unreachable": "off",
313
313
  "no-unsafe-negation": "off",
314
314
  "no-var": "error",
315
+ "no-with": "off",
315
316
  "prefer-const": "error",
316
317
  "prefer-rest-params": "error",
317
318
  "prefer-spread": "error"
@@ -468,6 +469,7 @@ var eslintTypescriptDisableTypeCheckedRules = {
468
469
  "ts/no-unnecessary-template-expression": "off",
469
470
  "ts/no-unnecessary-type-arguments": "off",
470
471
  "ts/no-unnecessary-type-assertion": "off",
472
+ "ts/no-unnecessary-type-conversion": "off",
471
473
  "ts/no-unnecessary-type-parameters": "off",
472
474
  "ts/no-unsafe-argument": "off",
473
475
  "ts/no-unsafe-assignment": "off",
@@ -766,6 +768,7 @@ var jsonPackageRecommendedRules = {
766
768
  // Begin expansion 'eslint-plugin-package-json' 'configs.recommended.rules'
767
769
  "json-package/no-empty-fields": "error",
768
770
  "json-package/order-properties": "error",
771
+ "json-package/require-description": "error",
769
772
  "json-package/require-name": "error",
770
773
  "json-package/require-version": "error",
771
774
  "json-package/repository-shorthand": "error",
@@ -1295,7 +1298,9 @@ var prettierRules = {
1295
1298
  // src/presets/react.ts
1296
1299
  var reactRecommendedTypeCheckedRules = {
1297
1300
  // Begin expansion '@eslint-react/eslint-plugin' 'recommended-type-checked'
1301
+ "react/jsx-key-before-spread": "warn",
1298
1302
  "react/jsx-no-duplicate-props": "off",
1303
+ "react/jsx-uses-react": "off",
1299
1304
  "react/jsx-uses-vars": "off",
1300
1305
  "react/no-access-state-in-setstate": "error",
1301
1306
  "react/no-array-index-key": "warn",
@@ -1317,7 +1322,9 @@ var reactRecommendedTypeCheckedRules = {
1317
1322
  "react/no-forward-ref": "warn",
1318
1323
  "react/no-implicit-key": "warn",
1319
1324
  "react/no-missing-key": "error",
1325
+ "react/no-misused-capture-owner-stack": "error",
1320
1326
  "react/no-nested-component-definitions": "error",
1327
+ "react/no-nested-lazy-component-declarations": "warn",
1321
1328
  "react/no-prop-types": "error",
1322
1329
  "react/no-redundant-should-component-update": "error",
1323
1330
  "react/no-set-state-in-component-did-mount": "warn",
@@ -1333,18 +1340,17 @@ var reactRecommendedTypeCheckedRules = {
1333
1340
  "react/no-unused-state": "warn",
1334
1341
  "react/no-use-context": "warn",
1335
1342
  "react/no-useless-forward-ref": "warn",
1336
- "react/no-useless-fragment": "warn",
1337
1343
  "react-dom/no-dangerously-set-innerhtml": "warn",
1338
1344
  "react-dom/no-dangerously-set-innerhtml-with-children": "error",
1339
1345
  "react-dom/no-find-dom-node": "error",
1340
1346
  "react-dom/no-flush-sync": "error",
1347
+ "react-dom/no-hydrate": "error",
1341
1348
  "react-dom/no-missing-button-type": "warn",
1342
1349
  "react-dom/no-missing-iframe-sandbox": "warn",
1343
1350
  "react-dom/no-namespace": "error",
1344
1351
  "react-dom/no-render": "error",
1345
1352
  "react-dom/no-render-return-value": "error",
1346
1353
  "react-dom/no-script-url": "warn",
1347
- "react-dom/no-unknown-property": "off",
1348
1354
  "react-dom/no-unsafe-iframe-sandbox": "warn",
1349
1355
  "react-dom/no-unsafe-target-blank": "warn",
1350
1356
  "react-dom/no-use-form-state": "error",
@@ -1356,6 +1362,8 @@ var reactRecommendedTypeCheckedRules = {
1356
1362
  "react-hooks-extra/no-direct-set-state-in-use-effect": "warn",
1357
1363
  "react-hooks-extra/no-unnecessary-use-prefix": "warn",
1358
1364
  "react-hooks-extra/prefer-use-state-lazy-initialization": "warn",
1365
+ "react-naming-convention/context-name": "warn",
1366
+ "react-dom/no-unknown-property": "off",
1359
1367
  "react/no-leaked-conditional-rendering": "warn"
1360
1368
  // End expansion
1361
1369
  };
@@ -1532,7 +1540,6 @@ var unicornRecommendedRules = {
1532
1540
  "unicorn/no-array-callback-reference": "error",
1533
1541
  "unicorn/no-array-for-each": "error",
1534
1542
  "unicorn/no-array-method-this-argument": "error",
1535
- "unicorn/no-array-push-push": "error",
1536
1543
  "unicorn/no-array-reduce": "error",
1537
1544
  "unicorn/no-await-expression-member": "error",
1538
1545
  "unicorn/no-await-in-promise-methods": "error",
@@ -1545,7 +1552,6 @@ var unicornRecommendedRules = {
1545
1552
  "unicorn/no-invalid-fetch-options": "error",
1546
1553
  "unicorn/no-invalid-remove-event-listener": "error",
1547
1554
  "unicorn/no-keyword-prefix": "off",
1548
- "unicorn/no-length-as-slice-end": "error",
1549
1555
  "unicorn/no-lonely-if": "error",
1550
1556
  "unicorn/no-magic-array-flat-depth": "error",
1551
1557
  "unicorn/no-named-default": "error",
@@ -1562,8 +1568,11 @@ var unicornRecommendedRules = {
1562
1568
  "unicorn/no-thenable": "error",
1563
1569
  "unicorn/no-this-assignment": "error",
1564
1570
  "unicorn/no-typeof-undefined": "error",
1571
+ "unicorn/no-unnecessary-array-flat-depth": "error",
1572
+ "unicorn/no-unnecessary-array-splice-count": "error",
1565
1573
  "unicorn/no-unnecessary-await": "error",
1566
1574
  "unicorn/no-unnecessary-polyfills": "error",
1575
+ "unicorn/no-unnecessary-slice-end": "error",
1567
1576
  "unicorn/no-unreadable-array-destructuring": "error",
1568
1577
  "unicorn/no-unreadable-iife": "error",
1569
1578
  "unicorn/no-unused-properties": "off",
@@ -1594,6 +1603,7 @@ var unicornRecommendedRules = {
1594
1603
  "unicorn/prefer-event-target": "error",
1595
1604
  "unicorn/prefer-export-from": "error",
1596
1605
  "unicorn/prefer-global-this": "error",
1606
+ "unicorn/prefer-import-meta-properties": "off",
1597
1607
  "unicorn/prefer-includes": "error",
1598
1608
  "unicorn/prefer-json-parse-buffer": "off",
1599
1609
  "unicorn/prefer-keyboard-event-key": "error",
@@ -1615,6 +1625,7 @@ var unicornRecommendedRules = {
1615
1625
  "unicorn/prefer-regexp-test": "error",
1616
1626
  "unicorn/prefer-set-has": "error",
1617
1627
  "unicorn/prefer-set-size": "error",
1628
+ "unicorn/prefer-single-call": "error",
1618
1629
  "unicorn/prefer-spread": "error",
1619
1630
  "unicorn/prefer-string-raw": "error",
1620
1631
  "unicorn/prefer-string-replace-all": "error",
@@ -1693,6 +1704,7 @@ var xoJavascriptRules = {
1693
1704
  "default-case": "error",
1694
1705
  "default-case-last": "error",
1695
1706
  "dot-notation": "error",
1707
+ // "@stylistic/curly-newline":["error","always"],
1696
1708
  // "@stylistic/dot-location":["error","property"],
1697
1709
  eqeqeq: "error",
1698
1710
  "grouped-accessor-pairs": ["error", "getBeforeSet"],
@@ -1800,7 +1812,7 @@ var xoJavascriptRules = {
1800
1812
  "error",
1801
1813
  "always",
1802
1814
  {
1803
- ignorePattern: String.raw`pragma|ignore|prettier-ignore|webpack\w+:|c8|type-coverage:`,
1815
+ ignorePattern: String.raw`pragma|ignore|prettier-ignore|biome-ignore|webpack\w+:|c8|v8|type-coverage:`,
1804
1816
  ignoreInlineComments: true,
1805
1817
  ignoreConsecutiveComments: true
1806
1818
  }
@@ -1905,7 +1917,7 @@ var xoJavascriptRules = {
1905
1917
  // End expansion
1906
1918
  };
1907
1919
  var xoTypescriptRules = {
1908
- // Begin expansion 'eslint-config-xo-typescript' '[1].rules'
1920
+ // Begin expansion 'eslint-config-xo-typescript' '[4].rules'
1909
1921
  "ts/adjacent-overload-signatures": "error",
1910
1922
  "ts/array-type": ["error", { default: "array-simple" }],
1911
1923
  "ts/await-thenable": "error",
@@ -1957,14 +1969,7 @@ var xoTypescriptRules = {
1957
1969
  ],
1958
1970
  "ts/consistent-type-definitions": ["error", "type"],
1959
1971
  "ts/consistent-type-exports": ["error", { fixMixedExportsWithInlineTypeSpecifier: true }],
1960
- "ts/consistent-type-imports": [
1961
- "error",
1962
- {
1963
- disallowTypeAnnotations: false,
1964
- fixStyle: "separate-type-imports",
1965
- prefer: "type-imports"
1966
- }
1967
- ],
1972
+ "ts/consistent-type-imports": ["error", { fixStyle: "inline-type-imports" }],
1968
1973
  "func-call-spacing": "off",
1969
1974
  // "@stylistic/func-call-spacing":["error","never"],
1970
1975
  indent: "off",
@@ -2128,7 +2133,9 @@ var xoTypescriptRules = {
2128
2133
  "ts/no-unsafe-declaration-merging": "error",
2129
2134
  "ts/no-unsafe-enum-comparison": "error",
2130
2135
  "ts/no-unsafe-function-type": "error",
2136
+ "ts/no-unsafe-member-access": "error",
2131
2137
  "ts/no-unsafe-return": "error",
2138
+ "ts/no-unsafe-type-assertion": "error",
2132
2139
  "ts/no-useless-empty-export": "error",
2133
2140
  "no-unused-expressions": "off",
2134
2141
  "ts/no-unused-expressions": "error",
@@ -2164,6 +2171,7 @@ var xoTypescriptRules = {
2164
2171
  "ts/prefer-reduce-type-parameter": "error",
2165
2172
  "ts/prefer-string-starts-ends-with": "error",
2166
2173
  "ts/promise-function-async": "error",
2174
+ "ts/related-getter-setter-pairs": "error",
2167
2175
  quotes: "off",
2168
2176
  // "@stylistic/quotes":["error","single"],
2169
2177
  "ts/restrict-plus-operands": ["error", { allowAny: false }],
@@ -2200,18 +2208,18 @@ var xoTypescriptRules = {
2200
2208
  // End expansion
2201
2209
  };
2202
2210
  var xoTypescriptDtsRules = {
2203
- // Begin expansion 'eslint-config-xo-typescript' '[2].rules'
2211
+ // Begin expansion 'eslint-config-xo-typescript' '[5].rules'
2204
2212
  "ts/no-unused-vars": "off"
2205
2213
  // End expansion
2206
2214
  };
2207
2215
  var xoTypescriptTestRules = {
2208
- // Begin expansion 'eslint-config-xo-typescript' '[3].rules'
2216
+ // Begin expansion 'eslint-config-xo-typescript' '[6].rules'
2209
2217
  "ts/no-unsafe-call": "off",
2210
2218
  "ts/no-confusing-void-expression": "off"
2211
2219
  // End expansion
2212
2220
  };
2213
2221
  var xoTsxRules = {
2214
- // Begin expansion 'eslint-config-xo-typescript' '[4].rules'
2222
+ // Begin expansion 'eslint-config-xo-typescript' '[7].rules'
2215
2223
  "ts/naming-convention": [
2216
2224
  "error",
2217
2225
  {
@@ -2866,7 +2874,8 @@ var htmlRecommendedRules = {
2866
2874
  "html/quotes": "error",
2867
2875
  "html/no-obsolete-tags": "error",
2868
2876
  "html/require-closing-tags": "error",
2869
- "html/no-duplicate-attrs": "error"
2877
+ "html/no-duplicate-attrs": "error",
2878
+ "html/use-baseline": "error"
2870
2879
  // End expansion
2871
2880
  };
2872
2881
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/eslint-config",
3
- "version": "5.4.0",
3
+ "version": "5.4.1",
4
4
  "description": "ESLint configuration for @kitschpatrol/shared-config.",
5
5
  "keywords": [
6
6
  "shared-config",
@@ -41,46 +41,46 @@
41
41
  "init/*"
42
42
  ],
43
43
  "dependencies": {
44
- "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
45
- "@eslint-react/eslint-plugin": "^1.38.2",
46
- "@html-eslint/eslint-plugin": "^0.37.0",
47
- "@html-eslint/parser": "^0.37.0",
44
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
45
+ "@eslint-react/eslint-plugin": "^1.49.0",
46
+ "@html-eslint/eslint-plugin": "^0.40.2",
47
+ "@html-eslint/parser": "^0.40.0",
48
48
  "@pinojs/json-colorizer": "^4.0.0",
49
- "@typescript-eslint/eslint-plugin": "^8.28.0",
50
- "@typescript-eslint/parser": "^8.28.0",
51
- "@vitest/eslint-plugin": "^1.1.38",
49
+ "@typescript-eslint/eslint-plugin": "^8.32.0",
50
+ "@typescript-eslint/parser": "^8.32.0",
51
+ "@vitest/eslint-plugin": "^1.1.44",
52
52
  "astro-eslint-parser": "^1.2.2",
53
- "eslint": "^9.23.0",
53
+ "eslint": "^9.26.0",
54
54
  "eslint-config-flat-gitignore": "^2.1.0",
55
55
  "eslint-flat-config-utils": "^2.0.1",
56
- "eslint-import-resolver-typescript": "^3.10.0",
57
- "eslint-mdx": "^3.3.1",
56
+ "eslint-import-resolver-typescript": "^4.3.4",
57
+ "eslint-mdx": "^3.4.1",
58
58
  "eslint-plugin-astro": "^1.3.1",
59
- "eslint-plugin-depend": "^0.12.0",
59
+ "eslint-plugin-depend": "^1.2.0",
60
60
  "eslint-plugin-html": "^8.1.2",
61
- "eslint-plugin-import-x": "^4.9.3",
62
- "eslint-plugin-jsdoc": "^50.6.9",
61
+ "eslint-plugin-import-x": "^4.11.1",
62
+ "eslint-plugin-jsdoc": "^50.6.14",
63
63
  "eslint-plugin-jsonc": "^2.20.0",
64
64
  "eslint-plugin-jsx-a11y": "^6.10.2",
65
- "eslint-plugin-mdx": "^3.3.1",
66
- "eslint-plugin-n": "^17.17.0",
65
+ "eslint-plugin-mdx": "^3.4.1",
66
+ "eslint-plugin-n": "^17.18.0",
67
67
  "eslint-plugin-no-only-tests": "^3.3.0",
68
- "eslint-plugin-package-json": "^0.29.0",
69
- "eslint-plugin-perfectionist": "^4.10.1",
68
+ "eslint-plugin-package-json": "^0.31.0",
69
+ "eslint-plugin-perfectionist": "^4.12.3",
70
70
  "eslint-plugin-regexp": "^2.7.0",
71
- "eslint-plugin-svelte": "^3.3.3",
71
+ "eslint-plugin-svelte": "^3.5.1",
72
72
  "eslint-plugin-toml": "^0.12.0",
73
- "eslint-plugin-unicorn": "^58.0.0",
74
- "eslint-plugin-yml": "^1.17.0",
75
- "execa": "^9.5.2",
73
+ "eslint-plugin-unicorn": "^59.0.1",
74
+ "eslint-plugin-yml": "^1.18.0",
75
+ "execa": "^9.5.3",
76
76
  "find-workspaces": "^0.3.1",
77
77
  "fs-extra": "^11.3.0",
78
- "globals": "^16.0.0",
78
+ "globals": "^16.1.0",
79
79
  "jsonc-eslint-parser": "^2.4.0",
80
80
  "local-pkg": "^1.1.1",
81
81
  "prettier": "^3.5.3",
82
- "sort-package-json": "^3.0.0",
83
- "svelte-eslint-parser": "^1.1.1",
82
+ "sort-package-json": "^3.2.1",
83
+ "svelte-eslint-parser": "^1.1.3",
84
84
  "toml-eslint-parser": "^0.10.0",
85
85
  "yaml-eslint-parser": "^1.3.0"
86
86
  },
@@ -88,11 +88,11 @@
88
88
  "@types/eslint-config-prettier": "^6.11.3",
89
89
  "@types/eslint-plugin-jsx-a11y": "^6.10.0",
90
90
  "dot-prop": "^9.0.0",
91
- "eslint-config-prettier": "^10.1.1",
92
- "eslint-config-xo-typescript": "^7.0.0",
91
+ "eslint-config-prettier": "^10.1.5",
92
+ "eslint-config-xo-typescript": "^8.0.1",
93
93
  "eslint-typegen": "^2.1.0",
94
94
  "globby": "^14.1.0",
95
- "svelte": "^5.25.3",
95
+ "svelte": "^5.28.2",
96
96
  "tsup": "^8.4.0"
97
97
  },
98
98
  "engines": {