@alextheman/eslint-plugin 2.7.8 → 2.8.0

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/dist/index.cjs CHANGED
@@ -3759,7 +3759,7 @@ module.exports = __toCommonJS(index_exports);
3759
3759
 
3760
3760
  // package.json
3761
3761
  var name = "@alextheman/eslint-plugin";
3762
- var version = "2.7.8";
3762
+ var version = "2.8.0";
3763
3763
 
3764
3764
  // src/configs/index.ts
3765
3765
  var import_eslint_plugin_package_json = __toESM(require("eslint-plugin-package-json"), 1);
@@ -4926,7 +4926,8 @@ var standardiseErrorMessages = createRule_default({
4926
4926
  regex: {
4927
4927
  type: "string"
4928
4928
  }
4929
- }
4929
+ },
4930
+ additionalProperties: false
4930
4931
  }
4931
4932
  ]
4932
4933
  },
@@ -4963,7 +4964,8 @@ var useNormalizedImports = createRule_default({
4963
4964
  fixable: {
4964
4965
  type: "boolean"
4965
4966
  }
4966
- }
4967
+ },
4968
+ additionalProperties: false
4967
4969
  }
4968
4970
  ],
4969
4971
  fixable: "code"
package/dist/index.d.cts CHANGED
@@ -4,7 +4,7 @@ import { Config } from 'prettier';
4
4
  import z from 'zod';
5
5
 
6
6
  var name = "@alextheman/eslint-plugin";
7
- var version = "2.7.8";
7
+ var version = "2.8.0";
8
8
 
9
9
  type CamelToKebab<S extends string> = S extends `${IgnoreCase<"J">}avaScript${infer Rest}` ? Rest extends "" ? "javascript" : `javascript${CamelToKebab<Rest>}` : S extends `${IgnoreCase<"T">}ypeScript${infer Rest}` ? Rest extends "" ? "typescript" : `typescript${CamelToKebab<Rest>}` : S extends `${infer Head}${infer Tail}` ? Head extends Lowercase<Head> ? `${Head}${CamelToKebab<Tail>}` : `-${Lowercase<Head>}${CamelToKebab<Tail>}` : S;
10
10
 
@@ -65,4 +65,49 @@ declare const validTestFunctionsSchema: z.ZodEnum<{
65
65
  type TestFunction = z.infer<typeof validTestFunctionsSchema>;
66
66
  declare function parseTestFunction(data: unknown): TestFunction;
67
67
 
68
- export { type AlexPlugin, type AlexPluginConfigGroup, type CombinedConfig, type ConfigGroupName, type ConfigKey, type GeneralConfig, type PersonalConfig, type PluginConfig, type TestFunction, alexPlugin as default, parseTestFunction, prettierRules, sortObjects };
68
+ /**
69
+ * This file was automatically generated by json-schema-to-typescript.
70
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
71
+ * and run json-schema-to-typescript to regenerate this file.
72
+ */
73
+ interface ConsistentTestFunctionOptions {
74
+ preference?: string;
75
+ }
76
+
77
+ /**
78
+ * This file was automatically generated by json-schema-to-typescript.
79
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
80
+ * and run json-schema-to-typescript to regenerate this file.
81
+ */
82
+ interface NoNamespaceImportsOptions {
83
+ allow?: string[];
84
+ }
85
+
86
+ /**
87
+ * This file was automatically generated by json-schema-to-typescript.
88
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
89
+ * and run json-schema-to-typescript to regenerate this file.
90
+ */
91
+ interface NoRelativeImportsOptions {
92
+ depth?: number;
93
+ }
94
+
95
+ /**
96
+ * This file was automatically generated by json-schema-to-typescript.
97
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
98
+ * and run json-schema-to-typescript to regenerate this file.
99
+ */
100
+ interface StandardiseErrorMessagesOptions {
101
+ regex?: string;
102
+ }
103
+
104
+ /**
105
+ * This file was automatically generated by json-schema-to-typescript.
106
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
107
+ * and run json-schema-to-typescript to regenerate this file.
108
+ */
109
+ interface UseNormalizedImportsOptions {
110
+ fixable?: boolean;
111
+ }
112
+
113
+ export { type AlexPlugin, type AlexPluginConfigGroup, type CombinedConfig, type ConfigGroupName, type ConfigKey, type ConsistentTestFunctionOptions, type GeneralConfig, type NoNamespaceImportsOptions, type NoRelativeImportsOptions, type PersonalConfig, type PluginConfig, type StandardiseErrorMessagesOptions, type TestFunction, type UseNormalizedImportsOptions, alexPlugin as default, parseTestFunction, prettierRules, sortObjects };
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import { Config } from 'prettier';
4
4
  import z from 'zod';
5
5
 
6
6
  var name = "@alextheman/eslint-plugin";
7
- var version = "2.7.8";
7
+ var version = "2.8.0";
8
8
 
9
9
  type CamelToKebab<S extends string> = S extends `${IgnoreCase<"J">}avaScript${infer Rest}` ? Rest extends "" ? "javascript" : `javascript${CamelToKebab<Rest>}` : S extends `${IgnoreCase<"T">}ypeScript${infer Rest}` ? Rest extends "" ? "typescript" : `typescript${CamelToKebab<Rest>}` : S extends `${infer Head}${infer Tail}` ? Head extends Lowercase<Head> ? `${Head}${CamelToKebab<Tail>}` : `-${Lowercase<Head>}${CamelToKebab<Tail>}` : S;
10
10
 
@@ -65,4 +65,49 @@ declare const validTestFunctionsSchema: z.ZodEnum<{
65
65
  type TestFunction = z.infer<typeof validTestFunctionsSchema>;
66
66
  declare function parseTestFunction(data: unknown): TestFunction;
67
67
 
68
- export { type AlexPlugin, type AlexPluginConfigGroup, type CombinedConfig, type ConfigGroupName, type ConfigKey, type GeneralConfig, type PersonalConfig, type PluginConfig, type TestFunction, alexPlugin as default, parseTestFunction, prettierRules, sortObjects };
68
+ /**
69
+ * This file was automatically generated by json-schema-to-typescript.
70
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
71
+ * and run json-schema-to-typescript to regenerate this file.
72
+ */
73
+ interface ConsistentTestFunctionOptions {
74
+ preference?: string;
75
+ }
76
+
77
+ /**
78
+ * This file was automatically generated by json-schema-to-typescript.
79
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
80
+ * and run json-schema-to-typescript to regenerate this file.
81
+ */
82
+ interface NoNamespaceImportsOptions {
83
+ allow?: string[];
84
+ }
85
+
86
+ /**
87
+ * This file was automatically generated by json-schema-to-typescript.
88
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
89
+ * and run json-schema-to-typescript to regenerate this file.
90
+ */
91
+ interface NoRelativeImportsOptions {
92
+ depth?: number;
93
+ }
94
+
95
+ /**
96
+ * This file was automatically generated by json-schema-to-typescript.
97
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
98
+ * and run json-schema-to-typescript to regenerate this file.
99
+ */
100
+ interface StandardiseErrorMessagesOptions {
101
+ regex?: string;
102
+ }
103
+
104
+ /**
105
+ * This file was automatically generated by json-schema-to-typescript.
106
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
107
+ * and run json-schema-to-typescript to regenerate this file.
108
+ */
109
+ interface UseNormalizedImportsOptions {
110
+ fixable?: boolean;
111
+ }
112
+
113
+ export { type AlexPlugin, type AlexPluginConfigGroup, type CombinedConfig, type ConfigGroupName, type ConfigKey, type ConsistentTestFunctionOptions, type GeneralConfig, type NoNamespaceImportsOptions, type NoRelativeImportsOptions, type PersonalConfig, type PluginConfig, type StandardiseErrorMessagesOptions, type TestFunction, type UseNormalizedImportsOptions, alexPlugin as default, parseTestFunction, prettierRules, sortObjects };
package/dist/index.js CHANGED
@@ -3743,7 +3743,7 @@ var require_src = __commonJS({
3743
3743
 
3744
3744
  // package.json
3745
3745
  var name = "@alextheman/eslint-plugin";
3746
- var version = "2.7.8";
3746
+ var version = "2.8.0";
3747
3747
 
3748
3748
  // src/configs/index.ts
3749
3749
  import packageJson from "eslint-plugin-package-json";
@@ -4910,7 +4910,8 @@ var standardiseErrorMessages = createRule_default({
4910
4910
  regex: {
4911
4911
  type: "string"
4912
4912
  }
4913
- }
4913
+ },
4914
+ additionalProperties: false
4914
4915
  }
4915
4916
  ]
4916
4917
  },
@@ -4947,7 +4948,8 @@ var useNormalizedImports = createRule_default({
4947
4948
  fixable: {
4948
4949
  type: "boolean"
4949
4950
  }
4950
- }
4951
+ },
4952
+ additionalProperties: false
4951
4953
  }
4952
4954
  ],
4953
4955
  fixable: "code"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/eslint-plugin",
3
- "version": "2.7.8",
3
+ "version": "2.8.0",
4
4
  "description": "A package to provide custom ESLint rules and configs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,17 +15,18 @@
15
15
  "dist"
16
16
  ],
17
17
  "scripts": {
18
- "build": "tsup && npx tsx src/utility/hashConfigChanges.ts",
18
+ "build": "tsup && tsx src/utility/hashConfigChanges.ts",
19
19
  "change-major": "npm version major -m \"Change version number to v%s\"",
20
20
  "change-minor": "npm version minor -m \"Change version number to v%s\"",
21
21
  "change-patch": "npm version patch -m \"Change version number to v%s\"",
22
22
  "create-local-package": "npm run build && rm -f alextheman-eslint-plugin-*.tgz && npm pack",
23
- "format": "npx tsx src/utility/checkConfigChanges.ts || npm run build && npm run format-prettier && npm run format-eslint",
23
+ "format": "tsx src/utility/checkConfigChanges.ts || npm run build && npm run format-prettier && npm run format-eslint",
24
24
  "format-eslint": "eslint --fix --suppress-all \"src/**/*.ts\" \"tests/**/*.ts\" \"package.json\" && rm -f eslint-suppressions.json",
25
25
  "format-prettier": "npm run format-prettier-typescript && npm run format-prettier-javascript",
26
26
  "format-prettier-javascript": "prettier --write \"./**/*.js\"",
27
27
  "format-prettier-typescript": "prettier --write --parser typescript \"./**/*.ts\"",
28
- "lint": "npx tsx src/utility/checkConfigChanges.ts || npm run build && npm run lint-tsc && npm run lint-eslint && npm run lint-prettier",
28
+ "generate-rule-options-types": "tsx src/utility/generateRuleOptionsTypes.ts",
29
+ "lint": "tsx src/utility/checkConfigChanges.ts || npm run build && npm run lint-tsc && npm run lint-eslint && npm run lint-prettier",
29
30
  "lint-eslint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\" \"package.json\"",
30
31
  "lint-prettier": "npm run lint-prettier-typescript && npm run lint-prettier-javascript",
31
32
  "lint-prettier-javascript": "prettier --check \"./**/*.js\"",
@@ -37,9 +38,10 @@
37
38
  "update-dependencies": "bash -c 'npx npm-check-updates -u \"$@\" && npm install' --"
38
39
  },
39
40
  "dependencies": {
40
- "@alextheman/utility": "^2.14.0",
41
+ "@alextheman/utility": "^2.15.1",
41
42
  "common-tags": "^1.8.2",
42
43
  "eslint-plugin-package-json": "^0.64.0",
44
+ "json-schema-to-typescript": "^15.0.4",
43
45
  "zod": "^4.1.12"
44
46
  },
45
47
  "devDependencies": {
@@ -55,6 +57,7 @@
55
57
  "jiti": "^2.6.1",
56
58
  "prettier": "^3.6.2",
57
59
  "tsup": "^8.5.0",
60
+ "tsx": "^4.20.6",
58
61
  "typescript": "^5.9.3",
59
62
  "vite-tsconfig-paths": "^5.1.4",
60
63
  "vitest": "^4.0.8"