@kitschpatrol/eslint-config 5.8.1 → 5.8.3

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.3";
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
@@ -7913,6 +7918,7 @@ type HtmlIndent =
7913
7918
  tagChildrenIndent?: {
7914
7919
  [k: string]: number
7915
7920
  }
7921
+ ignoreComment?: boolean
7916
7922
  },
7917
7923
  ]
7918
7924
  // ----- html/max-element-depth -----
@@ -9789,14 +9795,6 @@ type JsonPackageRestrictPrivateProperties =
9789
9795
  ]
9790
9796
  // ----- json-package/sort-collections -----
9791
9797
  type JsonPackageSortCollections = [] | [string[]]
9792
- // ----- json-package/valid-bin -----
9793
- type JsonPackageValidBin =
9794
- | []
9795
- | [
9796
- {
9797
- enforceCase?: boolean
9798
- },
9799
- ]
9800
9798
  // ----- json-package/valid-package-definition -----
9801
9799
  type JsonPackageValidPackageDefinition =
9802
9800
  | []
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"
@@ -2639,15 +2639,69 @@ var sharedScriptConfig = {
2639
2639
  // Matches everything
2640
2640
  selector: "default"
2641
2641
  },
2642
+ // Overkill
2643
+ // {
2644
+ // format: null,
2645
+ // leadingUnderscore: 'require',
2646
+ // modifiers: ['unused'],
2647
+ // selector: 'class',
2648
+ // },
2649
+ // {
2650
+ // format: null,
2651
+ // leadingUnderscore: 'require',
2652
+ // modifiers: ['unused'],
2653
+ // selector: 'enum',
2654
+ // },
2655
+ {
2656
+ format: null,
2657
+ leadingUnderscore: "require",
2658
+ modifiers: ["unused"],
2659
+ selector: "function"
2660
+ },
2661
+ // Overkill
2662
+ // {
2663
+ // format: null,
2664
+ // leadingUnderscore: 'require',
2665
+ // modifiers: ['unused'],
2666
+ // selector: 'interface',
2667
+ // },
2642
2668
  {
2643
- custom: {
2644
- match: true,
2645
- regex: "^_+$"
2646
- },
2647
2669
  format: null,
2670
+ leadingUnderscore: "require",
2648
2671
  modifiers: ["unused"],
2649
2672
  selector: "parameter"
2650
2673
  },
2674
+ // Overkill
2675
+ // {
2676
+ // format: null,
2677
+ // leadingUnderscore: 'require',
2678
+ // modifiers: ['unused'],
2679
+ // selector: 'typeAlias',
2680
+ // },
2681
+ // {
2682
+ // format: null,
2683
+ // leadingUnderscore: 'require',
2684
+ // modifiers: ['unused'],
2685
+ // selector: 'typeLike',
2686
+ // },
2687
+ // {
2688
+ // format: null,
2689
+ // leadingUnderscore: 'require',
2690
+ // modifiers: ['unused'],
2691
+ // selector: 'typeParameter',
2692
+ // },
2693
+ {
2694
+ format: null,
2695
+ leadingUnderscore: "require",
2696
+ modifiers: ["unused"],
2697
+ selector: "variable"
2698
+ },
2699
+ {
2700
+ format: null,
2701
+ leadingUnderscore: "require",
2702
+ modifiers: ["unused"],
2703
+ selector: "variableLike"
2704
+ },
2651
2705
  {
2652
2706
  format: null,
2653
2707
  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.3",
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.48.0",
48
+ "@html-eslint/parser": "^0.48.0",
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": {