@alextheman/eslint-plugin 5.18.0 → 5.18.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.
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
16
16
  }
17
17
  return to;
18
18
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
20
20
  value: mod,
21
21
  enumerable: true
22
22
  }) : target, mod));
@@ -3,7 +3,6 @@ import { Linter } from "eslint";
3
3
  import z from "zod";
4
4
  import { JSONSchema4 } from "@typescript-eslint/utils/json-schema";
5
5
  import { RuleContext, RuleFix, RuleFixer } from "@typescript-eslint/utils/ts-eslint";
6
-
7
6
  //#region src/utility/public/checkCallExpression.d.ts
8
7
  /**
9
8
  * Checks if a given node matches the expected object and property names.
@@ -142,7 +141,7 @@ type CamelToKebab<S extends string> = S extends `${infer Head}${infer Tail}` ? H
142
141
  * type ConfigNames = GetFlattenedConfigNames<{ general: { typescriptReact }}> // "general/typescript-react"
143
142
  * ```
144
143
  */
145
- type GetFlattenedConfigNames<ConfigObject extends { [K in keyof ConfigObject]: Record<string, Array<Linter.Config>> }> = { [Group in keyof ConfigObject & string]: `${CamelToKebab<Group>}/${CamelToKebab<keyof ConfigObject[Group] & string>}` }[keyof ConfigObject & string];
144
+ type GetFlattenedConfigNames<ConfigObject extends { [K in keyof ConfigObject]: Record<string, Array<Linter.Config>>; }> = { [Group in keyof ConfigObject & string]: `${CamelToKebab<Group>}/${CamelToKebab<keyof ConfigObject[Group] & string>}`; }[keyof ConfigObject & string];
146
145
  //#endregion
147
146
  //#region src/utility/public/flattenConfigs.d.ts
148
147
  /**
@@ -182,7 +181,7 @@ type GetFlattenedConfigNames<ConfigObject extends { [K in keyof ConfigObject]: R
182
181
  * // ...
183
182
  * }
184
183
  */
185
- declare function flattenConfigs<ConfigObject extends { [K in keyof ConfigObject]: Record<string, Array<Linter.Config>> }>(config: ConfigObject): Record<GetFlattenedConfigNames<ConfigObject>, Array<Linter.Config>>;
184
+ declare function flattenConfigs<ConfigObject extends { [K in keyof ConfigObject]: Record<string, Array<Linter.Config>>; }>(config: ConfigObject): Record<GetFlattenedConfigNames<ConfigObject>, Array<Linter.Config>>;
186
185
  //#endregion
187
186
  //#region src/utility/public/getImportSpecifiersAfterRemoving.d.ts
188
187
  /**
@@ -3,7 +3,6 @@ import z from "zod";
3
3
  import { Linter } from "eslint";
4
4
  import { JSONSchema4 } from "@typescript-eslint/utils/json-schema";
5
5
  import { RuleContext, RuleFix, RuleFixer } from "@typescript-eslint/utils/ts-eslint";
6
-
7
6
  //#region src/utility/public/checkCallExpression.d.ts
8
7
  /**
9
8
  * Checks if a given node matches the expected object and property names.
@@ -142,7 +141,7 @@ type CamelToKebab<S extends string> = S extends `${infer Head}${infer Tail}` ? H
142
141
  * type ConfigNames = GetFlattenedConfigNames<{ general: { typescriptReact }}> // "general/typescript-react"
143
142
  * ```
144
143
  */
145
- type GetFlattenedConfigNames<ConfigObject extends { [K in keyof ConfigObject]: Record<string, Array<Linter.Config>> }> = { [Group in keyof ConfigObject & string]: `${CamelToKebab<Group>}/${CamelToKebab<keyof ConfigObject[Group] & string>}` }[keyof ConfigObject & string];
144
+ type GetFlattenedConfigNames<ConfigObject extends { [K in keyof ConfigObject]: Record<string, Array<Linter.Config>>; }> = { [Group in keyof ConfigObject & string]: `${CamelToKebab<Group>}/${CamelToKebab<keyof ConfigObject[Group] & string>}`; }[keyof ConfigObject & string];
146
145
  //#endregion
147
146
  //#region src/utility/public/flattenConfigs.d.ts
148
147
  /**
@@ -182,7 +181,7 @@ type GetFlattenedConfigNames<ConfigObject extends { [K in keyof ConfigObject]: R
182
181
  * // ...
183
182
  * }
184
183
  */
185
- declare function flattenConfigs<ConfigObject extends { [K in keyof ConfigObject]: Record<string, Array<Linter.Config>> }>(config: ConfigObject): Record<GetFlattenedConfigNames<ConfigObject>, Array<Linter.Config>>;
184
+ declare function flattenConfigs<ConfigObject extends { [K in keyof ConfigObject]: Record<string, Array<Linter.Config>>; }>(config: ConfigObject): Record<GetFlattenedConfigNames<ConfigObject>, Array<Linter.Config>>;
186
185
  //#endregion
187
186
  //#region src/utility/public/getImportSpecifiersAfterRemoving.d.ts
188
187
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/eslint-plugin",
3
- "version": "5.18.0",
3
+ "version": "5.18.2",
4
4
  "description": "A package to provide custom ESLint rules and configs.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,51 +37,51 @@
37
37
  "node": ">=22.3.0"
38
38
  },
39
39
  "dependencies": {
40
- "@alextheman/utility": "5.23.0",
40
+ "@alextheman/utility": "5.28.0",
41
41
  "@eslint/compat": "2.1.0",
42
- "@typescript-eslint/types": "8.61.1",
43
- "@typescript-eslint/utils": "8.61.1",
42
+ "@typescript-eslint/types": "8.68.0",
43
+ "@typescript-eslint/utils": "8.68.0",
44
44
  "common-tags": "1.8.2",
45
- "prettier": "3.8.4",
45
+ "prettier": "3.9.6",
46
46
  "zod": "4.4.3"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@eslint-community/eslint-plugin-eslint-comments": "4.7.2",
50
- "@eslint-react/eslint-plugin": "5.9.0",
50
+ "@eslint-react/eslint-plugin": "5.18.6",
51
51
  "@eslint/js": "10.0.1",
52
52
  "@stylistic/eslint-plugin": "5.10.0",
53
53
  "@types/common-tags": "1.8.4",
54
54
  "@types/eslint": "9.6.1",
55
55
  "@types/eslint-plugin-jsx-a11y": "6.10.1",
56
- "@types/node": "25.9.3",
57
- "@typescript-eslint/rule-tester": "8.61.1",
58
- "alex-c-line": "2.10.3",
56
+ "@types/node": "26.4.0",
57
+ "@typescript-eslint/rule-tester": "8.68.0",
58
+ "alex-c-line": "2.13.1",
59
59
  "dotenv-cli": "11.0.0",
60
- "eslint": "10.5.0",
60
+ "eslint": "10.9.1",
61
61
  "eslint-config-prettier": "10.1.8",
62
62
  "eslint-import-resolver-typescript": "4.4.5",
63
- "eslint-plugin-import-x": "4.16.2",
64
- "eslint-plugin-jsdoc": "63.0.6",
63
+ "eslint-plugin-import-x": "4.17.1",
64
+ "eslint-plugin-jsdoc": "64.2.1",
65
65
  "eslint-plugin-jsx-a11y-x": "0.2.0",
66
- "eslint-plugin-n": "18.1.0",
67
- "eslint-plugin-package-json": "1.4.0",
68
- "eslint-plugin-perfectionist": "5.9.1",
66
+ "eslint-plugin-n": "18.3.0",
67
+ "eslint-plugin-package-json": "1.7.1",
68
+ "eslint-plugin-perfectionist": "5.10.1",
69
69
  "eslint-plugin-prettier": "5.5.6",
70
70
  "eslint-plugin-react-hooks": "7.1.1",
71
- "eslint-plugin-react-refresh": "0.5.3",
71
+ "eslint-plugin-react-refresh": "0.5.5",
72
72
  "eslint-vitest-rule-tester": "3.1.0",
73
- "execa": "9.6.1",
74
- "globals": "17.6.0",
73
+ "execa": "10.0.1",
74
+ "globals": "17.11.0",
75
75
  "husky": "9.1.7",
76
- "jsdom": "29.1.1",
77
- "markdownlint-cli2": "0.22.1",
76
+ "jsdom": "30.0.1",
77
+ "markdownlint-cli2": "0.23.2",
78
78
  "tempy": "3.2.0",
79
- "tsdown": "0.22.3",
80
- "tsx": "4.22.4",
79
+ "tsdown": "0.22.14",
80
+ "tsx": "4.23.12",
81
81
  "typescript": "6.0.3",
82
- "typescript-eslint": "8.61.1",
83
- "vite": "8.0.16",
84
- "vitest": "4.1.9"
82
+ "typescript-eslint": "8.68.0",
83
+ "vite": "8.2.2",
84
+ "vitest": "4.1.11"
85
85
  },
86
86
  "peerDependencies": {
87
87
  "@eslint-community/eslint-plugin-eslint-comments": "4.7.2",
@@ -105,6 +105,7 @@
105
105
  "scripts": {
106
106
  "build": "tsdown",
107
107
  "create-local-package": "pnpm run build && rm -f alextheman-eslint-plugin-*.tgz && pnpm pack",
108
+ "create-release": "bash -c 'git pull origin main && alex-c-line template release-note create $@ --status \"Released\" --update-version' --",
108
109
  "create-release-note": "bash -c 'git pull origin main && alex-c-line template release-note create $@' --",
109
110
  "format": "pnpm run format-prettier && pnpm run format-eslint && pnpm run format-markdownlint",
110
111
  "format-and-build": "tsx src/utility/checkConfigChanges.ts || pnpm run build && pnpm run format",