@alextheman/eslint-plugin 5.7.0 → 5.7.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.
package/dist/index.cjs CHANGED
@@ -58,7 +58,6 @@ let eslint_plugin_react_hooks = require("eslint-plugin-react-hooks");
58
58
  eslint_plugin_react_hooks = __toESM(eslint_plugin_react_hooks);
59
59
  let eslint_plugin_package_json = require("eslint-plugin-package-json");
60
60
  eslint_plugin_package_json = __toESM(eslint_plugin_package_json);
61
- let _eslint_compat = require("@eslint/compat");
62
61
  let eslint_plugin_jsdoc = require("eslint-plugin-jsdoc");
63
62
  eslint_plugin_jsdoc = __toESM(eslint_plugin_jsdoc);
64
63
 
@@ -4756,7 +4755,7 @@ const generalPackageJson = [eslint_plugin_package_json.default.configs.recommend
4756
4755
  //#endregion
4757
4756
  //#region src/configs/general/typeScript.ts
4758
4757
  const generalTypeScript = [
4759
- ...(0, _eslint_compat.fixupConfigRules)(typescript_eslint.default.configs.recommended),
4758
+ ...typescript_eslint.default.configs.recommended,
4760
4759
  ...generalJavaScript,
4761
4760
  {
4762
4761
  files: ["**/*.ts", "**/*.tsx"],
@@ -4926,7 +4925,7 @@ function internalTypeScript(plugin) {
4926
4925
  name: "@alextheman/internal/typescript",
4927
4926
  plugins: {
4928
4927
  "@alextheman": plugin,
4929
- "@typescript-eslint": (0, _eslint_compat.fixupPluginRules)(typescript_eslint.default.plugin)
4928
+ "@typescript-eslint": typescript_eslint.default.plugin
4930
4929
  },
4931
4930
  rules: {
4932
4931
  "@alextheman/standardise-error-messages": "error",
@@ -4940,22 +4939,6 @@ function internalTypeScript(plugin) {
4940
4939
  }];
4941
4940
  }
4942
4941
 
4943
- //#endregion
4944
- //#region src/configs/internal/utility.ts
4945
- function internalUtility(plugin) {
4946
- return [...combinedTypeScriptPackage(plugin), {
4947
- name: "@alextheman/internal/utility",
4948
- plugins: {
4949
- "@typescript-eslint": (0, _eslint_compat.fixupPluginRules)(typescript_eslint.default.plugin),
4950
- jsdoc: eslint_plugin_jsdoc.default
4951
- },
4952
- rules: {
4953
- "@typescript-eslint/explicit-module-boundary-types": "error",
4954
- "jsdoc/require-jsdoc": ["error", requireJsdocOptions]
4955
- }
4956
- }];
4957
- }
4958
-
4959
4942
  //#endregion
4960
4943
  //#region src/configs/helpers/restrictedImports/eslintPluginRestrictedImports.ts
4961
4944
  const eslintPluginRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [
@@ -5031,6 +5014,37 @@ function internalEslintPluginUtility(plugin) {
5031
5014
  }];
5032
5015
  }
5033
5016
 
5017
+ //#endregion
5018
+ //#region src/configs/internal/utility/base.ts
5019
+ function internalUtilityBase(plugin) {
5020
+ return [...combinedTypeScriptPackage(plugin), {
5021
+ name: "@alextheman/internal/utility",
5022
+ plugins: {
5023
+ "@typescript-eslint": typescript_eslint.default.plugin,
5024
+ jsdoc: eslint_plugin_jsdoc.default
5025
+ },
5026
+ rules: {
5027
+ "@typescript-eslint/explicit-module-boundary-types": "error",
5028
+ "jsdoc/require-jsdoc": ["error", requireJsdocOptions]
5029
+ }
5030
+ }];
5031
+ }
5032
+
5033
+ //#endregion
5034
+ //#region src/configs/internal/utility/internal.ts
5035
+ function internalUtilityRoot$1(plugin) {
5036
+ return [...internalUtilityBase(plugin), { rules: { "jsdoc/require-jsdoc": "off" } }];
5037
+ }
5038
+
5039
+ //#endregion
5040
+ //#region src/configs/internal/utility/root.ts
5041
+ function internalUtilityRoot(plugin) {
5042
+ return [...internalUtilityBase(plugin), { rules: { "no-restricted-imports": ["error", combineRestrictedImports(personalRestrictedImports, { patterns: [{
5043
+ group: ["node:"],
5044
+ message: "Do not import node builtins from the root of utility. Please either refactor the usage so that the node builtin is not needed, or move this over to the \"@alextheman/utility/node\" entrypoint."
5045
+ }] })] } }];
5046
+ }
5047
+
5034
5048
  //#endregion
5035
5049
  //#region src/configs/combined/typeScript.ts
5036
5050
  function combinedTypeScript(plugin) {
@@ -5096,7 +5110,9 @@ function createAlexPluginConfigs(plugin) {
5096
5110
  react: internalReact,
5097
5111
  tests: internalTests,
5098
5112
  typescript: internalTypeScript(plugin),
5099
- utility: internalUtility(plugin)
5113
+ utilityBase: internalUtilityBase(plugin),
5114
+ utilityInternal: internalUtilityRoot$1(plugin),
5115
+ utilityRoot: internalUtilityRoot(plugin)
5100
5116
  },
5101
5117
  plugin: {
5102
5118
  base: pluginBase(plugin),
@@ -5500,7 +5516,7 @@ var rules_default = {
5500
5516
  //#endregion
5501
5517
  //#region package.json
5502
5518
  var name = "@alextheman/eslint-plugin";
5503
- var version = "5.7.0";
5519
+ var version = "5.7.1";
5504
5520
 
5505
5521
  //#endregion
5506
5522
  //#region src/alexPlugin.ts
package/dist/index.d.cts CHANGED
@@ -28,7 +28,7 @@ type GetFlattenedConfigNames<ConfigObject extends { [K in keyof ConfigObject]: R
28
28
  //#region src/configs/AlexPluginConfigGroup.d.ts
29
29
  type GeneralConfig = "javascript" | "typescript" | "react" | "packageJson";
30
30
  type PluginConfig = "base" | "tests";
31
- type InternalConfig = "javascript" | "typescript" | "react" | "tests" | "eslintPluginBase" | "eslintPluginConfigs" | "eslintPluginRules" | "eslintPluginUtility" | "neurosongsBackEnd" | "neurosongsFrontEnd" | "utility" | "alexCLine" | "jsdoc" | "components";
31
+ type InternalConfig = "javascript" | "typescript" | "react" | "tests" | "eslintPluginBase" | "eslintPluginConfigs" | "eslintPluginRules" | "eslintPluginUtility" | "neurosongsBackEnd" | "neurosongsFrontEnd" | "utilityBase" | "utilityRoot" | "utilityInternal" | "alexCLine" | "jsdoc" | "components";
32
32
  type CombinedConfig = "javascript" | "typescript" | "react" | "tests" | "typescriptReact" | "javascriptReact" | "typescriptPackage";
33
33
  interface AlexPluginConfigObject {
34
34
  general: Record<GeneralConfig, Linter.Config[]>;
package/dist/index.d.ts CHANGED
@@ -28,7 +28,7 @@ type GetFlattenedConfigNames<ConfigObject extends { [K in keyof ConfigObject]: R
28
28
  //#region src/configs/AlexPluginConfigGroup.d.ts
29
29
  type GeneralConfig = "javascript" | "typescript" | "react" | "packageJson";
30
30
  type PluginConfig = "base" | "tests";
31
- type InternalConfig = "javascript" | "typescript" | "react" | "tests" | "eslintPluginBase" | "eslintPluginConfigs" | "eslintPluginRules" | "eslintPluginUtility" | "neurosongsBackEnd" | "neurosongsFrontEnd" | "utility" | "alexCLine" | "jsdoc" | "components";
31
+ type InternalConfig = "javascript" | "typescript" | "react" | "tests" | "eslintPluginBase" | "eslintPluginConfigs" | "eslintPluginRules" | "eslintPluginUtility" | "neurosongsBackEnd" | "neurosongsFrontEnd" | "utilityBase" | "utilityRoot" | "utilityInternal" | "alexCLine" | "jsdoc" | "components";
32
32
  type CombinedConfig = "javascript" | "typescript" | "react" | "tests" | "typescriptReact" | "javascriptReact" | "typescriptPackage";
33
33
  interface AlexPluginConfigObject {
34
34
  general: Record<GeneralConfig, Linter.Config[]>;
package/dist/index.js CHANGED
@@ -15,7 +15,6 @@ import reactPlugin from "eslint-plugin-react";
15
15
  import reactRefresh from "eslint-plugin-react-refresh";
16
16
  import reactHooksPlugin from "eslint-plugin-react-hooks";
17
17
  import packageJson from "eslint-plugin-package-json";
18
- import { fixupConfigRules, fixupPluginRules } from "@eslint/compat";
19
18
  import jsdoc from "eslint-plugin-jsdoc";
20
19
 
21
20
  //#region \0rolldown/runtime.js
@@ -4740,7 +4739,7 @@ const generalPackageJson = [packageJson.configs.recommended, {
4740
4739
  //#endregion
4741
4740
  //#region src/configs/general/typeScript.ts
4742
4741
  const generalTypeScript = [
4743
- ...fixupConfigRules(tseslint.configs.recommended),
4742
+ ...tseslint.configs.recommended,
4744
4743
  ...generalJavaScript,
4745
4744
  {
4746
4745
  files: ["**/*.ts", "**/*.tsx"],
@@ -4910,7 +4909,7 @@ function internalTypeScript(plugin) {
4910
4909
  name: "@alextheman/internal/typescript",
4911
4910
  plugins: {
4912
4911
  "@alextheman": plugin,
4913
- "@typescript-eslint": fixupPluginRules(tseslint.plugin)
4912
+ "@typescript-eslint": tseslint.plugin
4914
4913
  },
4915
4914
  rules: {
4916
4915
  "@alextheman/standardise-error-messages": "error",
@@ -4924,22 +4923,6 @@ function internalTypeScript(plugin) {
4924
4923
  }];
4925
4924
  }
4926
4925
 
4927
- //#endregion
4928
- //#region src/configs/internal/utility.ts
4929
- function internalUtility(plugin) {
4930
- return [...combinedTypeScriptPackage(plugin), {
4931
- name: "@alextheman/internal/utility",
4932
- plugins: {
4933
- "@typescript-eslint": fixupPluginRules(tseslint.plugin),
4934
- jsdoc
4935
- },
4936
- rules: {
4937
- "@typescript-eslint/explicit-module-boundary-types": "error",
4938
- "jsdoc/require-jsdoc": ["error", requireJsdocOptions]
4939
- }
4940
- }];
4941
- }
4942
-
4943
4926
  //#endregion
4944
4927
  //#region src/configs/helpers/restrictedImports/eslintPluginRestrictedImports.ts
4945
4928
  const eslintPluginRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [
@@ -5015,6 +4998,37 @@ function internalEslintPluginUtility(plugin) {
5015
4998
  }];
5016
4999
  }
5017
5000
 
5001
+ //#endregion
5002
+ //#region src/configs/internal/utility/base.ts
5003
+ function internalUtilityBase(plugin) {
5004
+ return [...combinedTypeScriptPackage(plugin), {
5005
+ name: "@alextheman/internal/utility",
5006
+ plugins: {
5007
+ "@typescript-eslint": tseslint.plugin,
5008
+ jsdoc
5009
+ },
5010
+ rules: {
5011
+ "@typescript-eslint/explicit-module-boundary-types": "error",
5012
+ "jsdoc/require-jsdoc": ["error", requireJsdocOptions]
5013
+ }
5014
+ }];
5015
+ }
5016
+
5017
+ //#endregion
5018
+ //#region src/configs/internal/utility/internal.ts
5019
+ function internalUtilityRoot$1(plugin) {
5020
+ return [...internalUtilityBase(plugin), { rules: { "jsdoc/require-jsdoc": "off" } }];
5021
+ }
5022
+
5023
+ //#endregion
5024
+ //#region src/configs/internal/utility/root.ts
5025
+ function internalUtilityRoot(plugin) {
5026
+ return [...internalUtilityBase(plugin), { rules: { "no-restricted-imports": ["error", combineRestrictedImports(personalRestrictedImports, { patterns: [{
5027
+ group: ["node:"],
5028
+ message: "Do not import node builtins from the root of utility. Please either refactor the usage so that the node builtin is not needed, or move this over to the \"@alextheman/utility/node\" entrypoint."
5029
+ }] })] } }];
5030
+ }
5031
+
5018
5032
  //#endregion
5019
5033
  //#region src/configs/combined/typeScript.ts
5020
5034
  function combinedTypeScript(plugin) {
@@ -5080,7 +5094,9 @@ function createAlexPluginConfigs(plugin) {
5080
5094
  react: internalReact,
5081
5095
  tests: internalTests,
5082
5096
  typescript: internalTypeScript(plugin),
5083
- utility: internalUtility(plugin)
5097
+ utilityBase: internalUtilityBase(plugin),
5098
+ utilityInternal: internalUtilityRoot$1(plugin),
5099
+ utilityRoot: internalUtilityRoot(plugin)
5084
5100
  },
5085
5101
  plugin: {
5086
5102
  base: pluginBase(plugin),
@@ -5484,7 +5500,7 @@ var rules_default = {
5484
5500
  //#endregion
5485
5501
  //#region package.json
5486
5502
  var name = "@alextheman/eslint-plugin";
5487
- var version = "5.7.0";
5503
+ var version = "5.7.1";
5488
5504
 
5489
5505
  //#endregion
5490
5506
  //#region src/alexPlugin.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/eslint-plugin",
3
- "version": "5.7.0",
3
+ "version": "5.7.1",
4
4
  "description": "A package to provide custom ESLint rules and configs.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,10 +29,10 @@
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@alextheman/utility": "^4.13.0",
32
+ "@alextheman/utility": "^4.15.0",
33
33
  "@eslint/compat": "^2.0.2",
34
- "@typescript-eslint/types": "^8.54.0",
35
- "@typescript-eslint/utils": "^8.54.0",
34
+ "@typescript-eslint/types": "^8.55.0",
35
+ "@typescript-eslint/utils": "^8.55.0",
36
36
  "common-tags": "^1.8.2",
37
37
  "prettier": "^3.8.1",
38
38
  "zod": "^4.3.6"
@@ -42,15 +42,15 @@
42
42
  "@types/common-tags": "^1.8.4",
43
43
  "@types/eslint": "^9.6.1",
44
44
  "@types/eslint-plugin-jsx-a11y": "^6.10.1",
45
- "@types/node": "^25.2.1",
46
- "@typescript-eslint/rule-tester": "^8.54.0",
47
- "alex-c-line": "^1.23.1",
45
+ "@types/node": "^25.2.3",
46
+ "@typescript-eslint/rule-tester": "^8.55.0",
47
+ "alex-c-line": "^1.26.2",
48
48
  "dotenv-cli": "^11.0.0",
49
49
  "eslint": "^10.0.0",
50
50
  "eslint-config-prettier": "^10.1.8",
51
51
  "eslint-import-resolver-typescript": "^4.4.4",
52
52
  "eslint-plugin-import": "^2.32.0",
53
- "eslint-plugin-jsdoc": "^62.5.3",
53
+ "eslint-plugin-jsdoc": "^62.5.4",
54
54
  "eslint-plugin-jsx-a11y": "^6.10.2",
55
55
  "eslint-plugin-n": "^17.23.2",
56
56
  "eslint-plugin-package-json": "^0.88.2",
@@ -65,12 +65,12 @@
65
65
  "jsdom": "^28.0.0",
66
66
  "tsdown": "^0.20.3",
67
67
  "tsx": "^4.21.0",
68
- "typedoc": "^0.28.16",
68
+ "typedoc": "^0.28.17",
69
69
  "typedoc-plugin-markdown": "^4.10.0",
70
70
  "typedoc-rhineai-theme": "^1.2.0",
71
71
  "typescript": "^5.9.3",
72
- "typescript-eslint": "^8.54.0",
73
- "vite-tsconfig-paths": "^6.0.5",
72
+ "typescript-eslint": "^8.56.0",
73
+ "vite-tsconfig-paths": "^6.1.1",
74
74
  "vitest": "^4.0.18"
75
75
  },
76
76
  "peerDependencies": {