@kitschpatrol/eslint-config 5.8.1 → 5.8.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/bin/cli.js CHANGED
@@ -5138,7 +5138,7 @@ var Yargs = YargsFactory(esm_default);
5138
5138
  var yargs_default = Yargs;
5139
5139
 
5140
5140
  // ../../package.json
5141
- var version = "5.8.1";
5141
+ var version = "5.8.2";
5142
5142
 
5143
5143
  // ../../src/execa-utilities.ts
5144
5144
  function isErrorExecaError(error) {
package/dist/index.d.ts CHANGED
@@ -1486,6 +1486,11 @@ interface RuleOptions {
1486
1486
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/valid-types.md#repos-sticky-header
1487
1487
  */
1488
1488
  'jsdoc/valid-types'?: Linter.RuleEntry<JsdocValidTypes>
1489
+ /**
1490
+ * Enforce that names for bin properties are in kebab case.
1491
+ * @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/bin-name-casing.md
1492
+ */
1493
+ 'json-package/bin-name-casing'?: Linter.RuleEntry<[]>
1489
1494
  /**
1490
1495
  * Enforce consistent format for the exports field (implicit or explicit subpaths).
1491
1496
  * @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/exports-subpaths-style.md
@@ -1625,7 +1630,7 @@ interface RuleOptions {
1625
1630
  * Enforce that the `bin` property is valid.
1626
1631
  * @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-bin.md
1627
1632
  */
1628
- 'json-package/valid-bin'?: Linter.RuleEntry<JsonPackageValidBin>
1633
+ 'json-package/valid-bin'?: Linter.RuleEntry<[]>
1629
1634
  /**
1630
1635
  * Enforce that the `bundleDependencies` (also: `bundledDependencies`) property is valid.
1631
1636
  * @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-bundleDependencies.md
@@ -9789,14 +9794,6 @@ type JsonPackageRestrictPrivateProperties =
9789
9794
  ]
9790
9795
  // ----- json-package/sort-collections -----
9791
9796
  type JsonPackageSortCollections = [] | [string[]]
9792
- // ----- json-package/valid-bin -----
9793
- type JsonPackageValidBin =
9794
- | []
9795
- | [
9796
- {
9797
- enforceCase?: boolean
9798
- },
9799
- ]
9800
9797
  // ----- json-package/valid-package-definition -----
9801
9798
  type JsonPackageValidPackageDefinition =
9802
9799
  | []
package/dist/index.js CHANGED
@@ -816,6 +816,7 @@ var jsonPackageRecommendedRules = {
816
816
  "json-package/repository-shorthand": "error",
817
817
  "json-package/sort-collections": "error",
818
818
  "json-package/unique-dependencies": "error",
819
+ "json-package/valid-bin": "error",
819
820
  "json-package/valid-bundleDependencies": "error",
820
821
  "json-package/valid-config": "error",
821
822
  "json-package/valid-cpu": "error",
@@ -830,12 +831,12 @@ var jsonPackageRecommendedRules = {
830
831
  "json-package/valid-scripts": "error",
831
832
  "json-package/valid-type": "error",
832
833
  "json-package/valid-author": "error",
833
- "json-package/valid-bin": "error",
834
834
  "json-package/valid-name": "error",
835
835
  "json-package/valid-package-definition": [
836
836
  "error",
837
837
  {
838
838
  ignoreProperties: [
839
+ "bin",
839
840
  "bundleDependencies",
840
841
  "config",
841
842
  "cpu",
@@ -850,7 +851,6 @@ var jsonPackageRecommendedRules = {
850
851
  "scripts",
851
852
  "type",
852
853
  "author",
853
- "bin",
854
854
  "name",
855
855
  "repository-directory",
856
856
  "version"
@@ -2640,14 +2640,65 @@ var sharedScriptConfig = {
2640
2640
  selector: "default"
2641
2641
  },
2642
2642
  {
2643
- custom: {
2644
- match: true,
2645
- regex: "^_+$"
2646
- },
2647
2643
  format: null,
2644
+ leadingUnderscore: "require",
2645
+ modifiers: ["unused"],
2646
+ selector: "class"
2647
+ },
2648
+ {
2649
+ format: null,
2650
+ leadingUnderscore: "require",
2651
+ modifiers: ["unused"],
2652
+ selector: "enum"
2653
+ },
2654
+ {
2655
+ format: null,
2656
+ leadingUnderscore: "require",
2657
+ modifiers: ["unused"],
2658
+ selector: "function"
2659
+ },
2660
+ {
2661
+ format: null,
2662
+ leadingUnderscore: "require",
2663
+ modifiers: ["unused"],
2664
+ selector: "interface"
2665
+ },
2666
+ {
2667
+ format: null,
2668
+ leadingUnderscore: "require",
2669
+ modifiers: ["unused"],
2670
+ selector: "typeAlias"
2671
+ },
2672
+ {
2673
+ format: null,
2674
+ leadingUnderscore: "require",
2648
2675
  modifiers: ["unused"],
2649
2676
  selector: "parameter"
2650
2677
  },
2678
+ {
2679
+ format: null,
2680
+ leadingUnderscore: "require",
2681
+ modifiers: ["unused"],
2682
+ selector: "typeLike"
2683
+ },
2684
+ {
2685
+ format: null,
2686
+ leadingUnderscore: "require",
2687
+ modifiers: ["unused"],
2688
+ selector: "typeParameter"
2689
+ },
2690
+ {
2691
+ format: null,
2692
+ leadingUnderscore: "require",
2693
+ modifiers: ["unused"],
2694
+ selector: "variable"
2695
+ },
2696
+ {
2697
+ format: null,
2698
+ leadingUnderscore: "require",
2699
+ modifiers: ["unused"],
2700
+ selector: "variableLike"
2701
+ },
2651
2702
  {
2652
2703
  format: null,
2653
2704
  modifiers: ["requiresQuotes"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/eslint-config",
3
- "version": "5.8.1",
3
+ "version": "5.8.2",
4
4
  "description": "ESLint configuration for @kitschpatrol/shared-config.",
5
5
  "keywords": [
6
6
  "shared-config",
@@ -44,19 +44,19 @@
44
44
  "dependencies": {
45
45
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
46
46
  "@eslint-react/eslint-plugin": "2.1.1",
47
- "@html-eslint/eslint-plugin": "^0.47.0",
48
- "@html-eslint/parser": "^0.47.0",
47
+ "@html-eslint/eslint-plugin": "^0.47.1",
48
+ "@html-eslint/parser": "^0.47.1",
49
49
  "@pinojs/json-colorizer": "^4.0.0",
50
50
  "@typescript-eslint/eslint-plugin": "^8.46.3",
51
51
  "@typescript-eslint/parser": "^8.46.3",
52
- "@vitest/eslint-plugin": "^1.4.0",
52
+ "@vitest/eslint-plugin": "^1.4.1",
53
53
  "astro-eslint-parser": "^1.2.2",
54
54
  "eslint": "^9.39.1",
55
55
  "eslint-config-flat-gitignore": "^2.1.0",
56
56
  "eslint-flat-config-utils": "^2.1.4",
57
57
  "eslint-import-resolver-typescript": "^4.4.4",
58
58
  "eslint-mdx": "^3.6.2",
59
- "eslint-plugin-astro": "^1.4.0",
59
+ "eslint-plugin-astro": "^1.5.0",
60
60
  "eslint-plugin-depend": "^1.3.1",
61
61
  "eslint-plugin-html": "^8.1.3",
62
62
  "eslint-plugin-import-x": "^4.16.1",
@@ -66,7 +66,7 @@
66
66
  "eslint-plugin-mdx": "^3.6.2",
67
67
  "eslint-plugin-n": "^17.23.1",
68
68
  "eslint-plugin-no-only-tests": "^3.3.0",
69
- "eslint-plugin-package-json": "^0.63.0",
69
+ "eslint-plugin-package-json": "^0.64.0",
70
70
  "eslint-plugin-perfectionist": "^4.15.1",
71
71
  "eslint-plugin-regexp": "^2.10.0",
72
72
  "eslint-plugin-svelte": "^3.13.0",
@@ -94,7 +94,7 @@
94
94
  "eslint-config-xo-typescript": "^9.0.0",
95
95
  "eslint-typegen": "^2.3.0",
96
96
  "globby": "^15.0.0",
97
- "svelte": "^5.43.3",
97
+ "svelte": "^5.43.4",
98
98
  "tsup": "^8.5.0"
99
99
  },
100
100
  "engines": {