@alextheman/eslint-plugin 5.12.0 → 5.13.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.js CHANGED
@@ -3,7 +3,8 @@ import { AST_NODE_TYPES, ESLintUtils } from "@typescript-eslint/utils";
3
3
  import z from "zod";
4
4
  import js from "@eslint/js";
5
5
  import prettierConfig$1 from "eslint-config-prettier";
6
- import importPlugin from "eslint-plugin-import";
6
+ import * as tsResolver from "eslint-import-resolver-typescript";
7
+ import importPlugin from "eslint-plugin-import-x";
7
8
  import nodePlugin from "eslint-plugin-n";
8
9
  import perfectionist from "eslint-plugin-perfectionist";
9
10
  import prettierPlugin from "eslint-plugin-prettier";
@@ -15,7 +16,6 @@ import reactHooksPlugin from "eslint-plugin-react-hooks";
15
16
  import packageJson from "eslint-plugin-package-json";
16
17
  import jsdoc from "eslint-plugin-jsdoc";
17
18
  import { normalizeImportPath } from "@alextheman/utility/node";
18
-
19
19
  //#region \0rolldown/runtime.js
20
20
  var __create = Object.create;
21
21
  var __defProp = Object.defineProperty;
@@ -25,16 +25,12 @@ var __getProtoOf = Object.getPrototypeOf;
25
25
  var __hasOwnProp = Object.prototype.hasOwnProperty;
26
26
  var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
27
27
  var __copyProps = (to, from, except, desc) => {
28
- if (from && typeof from === "object" || typeof from === "function") {
29
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
30
- key = keys[i];
31
- if (!__hasOwnProp.call(to, key) && key !== except) {
32
- __defProp(to, key, {
33
- get: ((k) => from[k]).bind(null, key),
34
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
35
- });
36
- }
37
- }
28
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
29
+ key = keys[i];
30
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
31
+ get: ((k) => from[k]).bind(null, key),
32
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
33
+ });
38
34
  }
39
35
  return to;
40
36
  };
@@ -42,7 +38,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
42
38
  value: mod,
43
39
  enumerable: true
44
40
  }) : target, mod));
45
-
46
41
  //#endregion
47
42
  //#region node_modules/.pnpm/globals@17.4.0/node_modules/globals/globals.json
48
43
  var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -4068,20 +4063,17 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4068
4063
  }
4069
4064
  };
4070
4065
  }));
4071
-
4072
4066
  //#endregion
4073
4067
  //#region node_modules/.pnpm/globals@17.4.0/node_modules/globals/index.js
4074
4068
  var require_globals = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4075
4069
  module.exports = require_globals$1();
4076
4070
  }));
4077
-
4078
4071
  //#endregion
4079
4072
  //#region src/configs/helpers/restrictedImports/generalRestrictedImports.ts
4080
4073
  const generalRestrictedImports = { patterns: [{
4081
4074
  group: ["node_modules"],
4082
4075
  message: "Do not import directly from node_modules."
4083
4076
  }] };
4084
-
4085
4077
  //#endregion
4086
4078
  //#region src/utility/public/checkCallExpression.ts
4087
4079
  /**
@@ -4098,7 +4090,6 @@ const generalRestrictedImports = { patterns: [{
4098
4090
  function checkCallExpression(node, objectName, propertyName) {
4099
4091
  return node.callee.type === AST_NODE_TYPES.MemberExpression && node.callee.object.type === AST_NODE_TYPES.Identifier && node.callee.object.name === objectName && node.callee.property.type === AST_NODE_TYPES.Identifier && node.callee.property.name === propertyName;
4100
4092
  }
4101
-
4102
4093
  //#endregion
4103
4094
  //#region src/utility/public/combineRestrictedImports.ts
4104
4095
  /**
@@ -4125,7 +4116,6 @@ function combineRestrictedImports(...groups) {
4125
4116
  if (combinedGroup.patterns.length === 0) return omitProperties(combinedGroup, "patterns");
4126
4117
  return combinedGroup;
4127
4118
  }
4128
-
4129
4119
  //#endregion
4130
4120
  //#region src/utility/public/createRuleSchemaFromZodSchema.ts
4131
4121
  /**
@@ -4140,7 +4130,6 @@ function combineRestrictedImports(...groups) {
4140
4130
  function createRuleSchemaFromZodSchema(schema) {
4141
4131
  return [omitProperties(z.toJSONSchema(schema), "$schema")];
4142
4132
  }
4143
-
4144
4133
  //#endregion
4145
4134
  //#region src/utility/public/fixOnCondition.ts
4146
4135
  /**
@@ -4159,14 +4148,12 @@ function fixOnCondition(fixable, fix) {
4159
4148
  return fix(fixer);
4160
4149
  };
4161
4150
  }
4162
-
4163
4151
  //#endregion
4164
4152
  //#region src/utility/private/camelToKebab.ts
4165
4153
  function camelToKebab$1(string) {
4166
4154
  if (string[0] === string[0].toUpperCase()) throw new DataError({ string }, "CAMEL_TO_KEBAB_CONVERSION_ERROR", "camelCase string must start with a lowercase letter.");
4167
4155
  return camelToKebab(string, { preserveConsecutiveCapitals: false });
4168
4156
  }
4169
-
4170
4157
  //#endregion
4171
4158
  //#region src/utility/private/createConfigGroup.ts
4172
4159
  function createConfigGroup(group, configs) {
@@ -4174,7 +4161,6 @@ function createConfigGroup(group, configs) {
4174
4161
  for (const key in configs) newConfigs[`${camelToKebab$1(group)}/${camelToKebab$1(key)}`] = configs[key];
4175
4162
  return newConfigs;
4176
4163
  }
4177
-
4178
4164
  //#endregion
4179
4165
  //#region src/utility/public/flattenConfigs.ts
4180
4166
  /**
@@ -4219,7 +4205,6 @@ function flattenConfigs(config) {
4219
4205
  for (const configGroupEntries of Object.entries(config)) Object.assign(allConfigs, createConfigGroup(...configGroupEntries));
4220
4206
  return allConfigs;
4221
4207
  }
4222
-
4223
4208
  //#endregion
4224
4209
  //#region src/utility/public/getImportSpecifiersAfterRemoving.ts
4225
4210
  /**
@@ -4244,14 +4229,12 @@ function getImportSpecifiersAfterRemoving(context, specifiers, importToRemove) {
4244
4229
  return context.sourceCode.getText(specifier);
4245
4230
  }).join(", ");
4246
4231
  }
4247
-
4248
4232
  //#endregion
4249
4233
  //#region src/configs/helpers/restrictedImports/testsRestrictedImports.ts
4250
4234
  const testsRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [{
4251
4235
  message: "Use test functions from vitest instead.",
4252
4236
  name: "node:test"
4253
4237
  }] });
4254
-
4255
4238
  //#endregion
4256
4239
  //#region src/configs/internal/tests.ts
4257
4240
  var import_globals = /* @__PURE__ */ __toESM(require_globals(), 1);
@@ -4282,7 +4265,6 @@ const internalTests = [{
4282
4265
  "no-restricted-imports": ["error", testsRestrictedImports]
4283
4266
  }
4284
4267
  }];
4285
-
4286
4268
  //#endregion
4287
4269
  //#region src/configs/plugin/base.ts
4288
4270
  function pluginBase(plugin) {
@@ -4296,7 +4278,6 @@ function pluginBase(plugin) {
4296
4278
  }
4297
4279
  }];
4298
4280
  }
4299
-
4300
4281
  //#endregion
4301
4282
  //#region src/configs/plugin/tests.ts
4302
4283
  function pluginTests(plugin) {
@@ -4311,7 +4292,6 @@ function pluginTests(plugin) {
4311
4292
  }
4312
4293
  }];
4313
4294
  }
4314
-
4315
4295
  //#endregion
4316
4296
  //#region src/configs/combined/tests.ts
4317
4297
  function combinedTests(plugin) {
@@ -4321,7 +4301,6 @@ function combinedTests(plugin) {
4321
4301
  ...internalTests
4322
4302
  ];
4323
4303
  }
4324
-
4325
4304
  //#endregion
4326
4305
  //#region src/configs/helpers/javaScriptLanguageOptions.ts
4327
4306
  const javaScriptLanguageOptions = { globals: {
@@ -4329,7 +4308,6 @@ const javaScriptLanguageOptions = { globals: {
4329
4308
  ...import_globals.default.browser,
4330
4309
  ...import_globals.default.vitest
4331
4310
  } };
4332
-
4333
4311
  //#endregion
4334
4312
  //#region src/configs/helpers/unusedVarsIgnorePatterns.ts
4335
4313
  const unusedVarsIgnorePatterns = {
@@ -4337,7 +4315,6 @@ const unusedVarsIgnorePatterns = {
4337
4315
  caughtErrorsIgnorePattern: "^_",
4338
4316
  varsIgnorePattern: "^_"
4339
4317
  };
4340
-
4341
4318
  //#endregion
4342
4319
  //#region src/configs/general/javaScript.ts
4343
4320
  const generalJavaScript = [
@@ -4355,13 +4332,13 @@ const generalJavaScript = [
4355
4332
  languageOptions: javaScriptLanguageOptions,
4356
4333
  name: "@alextheman/general/javascript",
4357
4334
  plugins: {
4358
- import: importPlugin,
4335
+ "import-x": importPlugin,
4359
4336
  n: nodePlugin
4360
4337
  },
4361
4338
  rules: {
4362
4339
  eqeqeq: "error",
4363
- "import/no-duplicates": ["error", { "prefer-inline": false }],
4364
- "import/no-unresolved": "error",
4340
+ "import-x/no-duplicates": ["error", { "prefer-inline": false }],
4341
+ "import-x/no-unresolved": "error",
4365
4342
  "n/file-extension-in-import": [
4366
4343
  "error",
4367
4344
  "always",
@@ -4393,14 +4370,16 @@ const generalJavaScript = [
4393
4370
  "no-useless-return": "error",
4394
4371
  "prefer-const": "error"
4395
4372
  },
4396
- settings: { "import/resolver": { node: true } }
4373
+ settings: { "import-x/resolver": {
4374
+ name: "tsResolver",
4375
+ options: { node: true },
4376
+ resolver: tsResolver
4377
+ } }
4397
4378
  }
4398
4379
  ];
4399
-
4400
4380
  //#endregion
4401
4381
  //#region src/configs/external/prettierConfig.ts
4402
4382
  const prettierConfig = { printWidth: 100 };
4403
-
4404
4383
  //#endregion
4405
4384
  //#region src/configs/helpers/reactLanguageOptions.ts
4406
4385
  const reactLanguageOptions = {
@@ -4408,7 +4387,6 @@ const reactLanguageOptions = {
4408
4387
  globals: import_globals.default.browser,
4409
4388
  parserOptions: { ecmaFeatures: { jsx: true } }
4410
4389
  };
4411
-
4412
4390
  //#endregion
4413
4391
  //#region src/configs/helpers/typeScriptLanguageOptions.ts
4414
4392
  const typeScriptLanguageOptions = {
@@ -4420,7 +4398,6 @@ const typeScriptLanguageOptions = {
4420
4398
  tsconfigRootDir: process.cwd()
4421
4399
  }
4422
4400
  };
4423
-
4424
4401
  //#endregion
4425
4402
  //#region src/configs/helpers/sorting/sortClasses.ts
4426
4403
  const sortClasses = {
@@ -4447,7 +4424,6 @@ const sortClasses = {
4447
4424
  specialCharacters: "keep",
4448
4425
  type: "alphabetical"
4449
4426
  };
4450
-
4451
4427
  //#endregion
4452
4428
  //#region src/configs/helpers/sorting/sortExports.ts
4453
4429
  const sortExports = {
@@ -4467,7 +4443,6 @@ const sortExports = {
4467
4443
  specialCharacters: "keep",
4468
4444
  type: "alphabetical"
4469
4445
  };
4470
-
4471
4446
  //#endregion
4472
4447
  //#region src/configs/helpers/sorting/sortImports.ts
4473
4448
  const sortImports = {
@@ -4506,7 +4481,6 @@ const sortImports = {
4506
4481
  specialCharacters: "keep",
4507
4482
  type: "alphabetical"
4508
4483
  };
4509
-
4510
4484
  //#endregion
4511
4485
  //#region src/configs/helpers/sorting/sortObjects.ts
4512
4486
  const sortObjects = {
@@ -4523,7 +4497,6 @@ const sortObjects = {
4523
4497
  type: "alphabetical",
4524
4498
  useConfigurationIf: {}
4525
4499
  };
4526
-
4527
4500
  //#endregion
4528
4501
  //#region src/configs/helpers/restrictedImports/personalRestrictedImports.ts
4529
4502
  const personalRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [...["fs", "node:fs"].map((name) => {
@@ -4532,7 +4505,6 @@ const personalRestrictedImports = combineRestrictedImports(generalRestrictedImpo
4532
4505
  name
4533
4506
  };
4534
4507
  })] });
4535
-
4536
4508
  //#endregion
4537
4509
  //#region src/configs/helpers/sorting/sortNamedImports.ts
4538
4510
  const sortNamedImports = {
@@ -4547,7 +4519,6 @@ const sortNamedImports = {
4547
4519
  specialCharacters: "keep",
4548
4520
  type: "alphabetical"
4549
4521
  };
4550
-
4551
4522
  //#endregion
4552
4523
  //#region src/configs/internal/javaScript.ts
4553
4524
  function internalJavaScript(plugin) {
@@ -4562,7 +4533,6 @@ function internalJavaScript(plugin) {
4562
4533
  name: "@alextheman/internal/javascript",
4563
4534
  plugins: {
4564
4535
  "@alextheman": plugin,
4565
- import: importPlugin,
4566
4536
  n: nodePlugin,
4567
4537
  perfectionist,
4568
4538
  prettier: prettierPlugin
@@ -4576,7 +4546,6 @@ function internalJavaScript(plugin) {
4576
4546
  "declaration",
4577
4547
  { allowArrowFunctions: false }
4578
4548
  ],
4579
- "import/consistent-type-specifier-style": ["error", "prefer-top-level"],
4580
4549
  "n/no-extraneous-import": "off",
4581
4550
  "no-else-return": "error",
4582
4551
  "no-implicit-coercion": ["error", { allow: ["!!"] }],
@@ -4597,7 +4566,6 @@ function internalJavaScript(plugin) {
4597
4566
  rules: { "@alextheman/no-relative-imports": ["error", { depth: 0 }] }
4598
4567
  }];
4599
4568
  }
4600
-
4601
4569
  //#endregion
4602
4570
  //#region src/configs/combined/javaScript.ts
4603
4571
  function combinedJavaScript(plugin) {
@@ -4609,7 +4577,6 @@ function combinedJavaScript(plugin) {
4609
4577
  ...combinedTests(plugin)
4610
4578
  ];
4611
4579
  }
4612
-
4613
4580
  //#endregion
4614
4581
  //#region src/configs/helpers/eslint-plugin-react-hooks.ts
4615
4582
  const reactHooks = {
@@ -4620,7 +4587,6 @@ const reactHooks = {
4620
4587
  "flat/recommended-latest": reactHooksPlugin.configs.flat["recommended-latest"]
4621
4588
  }
4622
4589
  };
4623
-
4624
4590
  //#endregion
4625
4591
  //#region src/configs/general/react.ts
4626
4592
  const generalReact = [
@@ -4655,14 +4621,12 @@ const generalReact = [
4655
4621
  settings: { react: { version: "detect" } }
4656
4622
  }
4657
4623
  ];
4658
-
4659
4624
  //#endregion
4660
4625
  //#region src/configs/helpers/restrictedImports/reactRestrictedImports.ts
4661
4626
  const reactRestrictedImports = combineRestrictedImports(generalRestrictedImports, { patterns: [{
4662
4627
  message: "Please use `import Component from \"@mui/[package]/Component\"` instead. See https://mui.com/material-ui/guides/minimizing-bundle-size/ for more information.",
4663
4628
  regex: "^@mui/[^/]+$"
4664
4629
  }] });
4665
-
4666
4630
  //#endregion
4667
4631
  //#region src/configs/internal/react.ts
4668
4632
  const internalReact = [{
@@ -4681,7 +4645,6 @@ const internalReact = [{
4681
4645
  "react/jsx-boolean-value": "error"
4682
4646
  }
4683
4647
  }];
4684
-
4685
4648
  //#endregion
4686
4649
  //#region src/configs/combined/react.ts
4687
4650
  const combinedReact = [
@@ -4689,7 +4652,6 @@ const combinedReact = [
4689
4652
  ...generalReact,
4690
4653
  ...internalReact
4691
4654
  ];
4692
-
4693
4655
  //#endregion
4694
4656
  //#region src/configs/combined/javaScriptReact.ts
4695
4657
  function combinedJavaScriptReact(plugin) {
@@ -4699,14 +4661,12 @@ function combinedJavaScriptReact(plugin) {
4699
4661
  ...combinedReact
4700
4662
  ];
4701
4663
  }
4702
-
4703
4664
  //#endregion
4704
4665
  //#region src/configs/general/packageJson.ts
4705
4666
  const generalPackageJson = [packageJson.configs.recommended, {
4706
4667
  plugins: { "package-json": packageJson },
4707
4668
  rules: { "package-json/scripts-name-casing": "error" }
4708
4669
  }];
4709
-
4710
4670
  //#endregion
4711
4671
  //#region src/configs/general/typeScript.ts
4712
4672
  const generalTypeScript = [
@@ -4730,7 +4690,6 @@ const generalTypeScript = [
4730
4690
  }
4731
4691
  }
4732
4692
  ];
4733
-
4734
4693
  //#endregion
4735
4694
  //#region src/configs/internal/alexCLine.ts
4736
4695
  function internalAlexCLine(plugin) {
@@ -4749,7 +4708,6 @@ function internalAlexCLine(plugin) {
4749
4708
  }
4750
4709
  ];
4751
4710
  }
4752
-
4753
4711
  //#endregion
4754
4712
  //#region src/configs/helpers/requireJsdocOptions.ts
4755
4713
  const requireJsdocOptions = {
@@ -4760,7 +4718,6 @@ const requireJsdocOptions = {
4760
4718
  MethodDefinition: true
4761
4719
  }
4762
4720
  };
4763
-
4764
4721
  //#endregion
4765
4722
  //#region src/configs/internal/jsdoc.ts
4766
4723
  const internalJsdoc = [jsdoc.configs["flat/recommended-typescript-error"], { rules: {
@@ -4787,7 +4744,6 @@ const internalJsdoc = [jsdoc.configs["flat/recommended-typescript-error"], { rul
4787
4744
  { startLines: 1 }
4788
4745
  ]
4789
4746
  } }];
4790
-
4791
4747
  //#endregion
4792
4748
  //#region src/configs/internal/components.ts
4793
4749
  const internalComponents = [...internalJsdoc, { rules: {
@@ -4796,7 +4752,6 @@ const internalComponents = [...internalJsdoc, { rules: {
4796
4752
  "jsdoc/require-returns": "off",
4797
4753
  "jsdoc/require-tags": "off"
4798
4754
  } }];
4799
-
4800
4755
  //#endregion
4801
4756
  //#region src/configs/helpers/restrictedImports/neurosongsBackEndRestrictedImports.ts
4802
4757
  const neurosongsBackEndRestrictedImports = combineRestrictedImports(personalRestrictedImports, { paths: [
@@ -4815,7 +4770,6 @@ const neurosongsBackEndRestrictedImports = combineRestrictedImports(personalRest
4815
4770
  name: "@neurosongs/prisma-client/prisma"
4816
4771
  }
4817
4772
  ] });
4818
-
4819
4773
  //#endregion
4820
4774
  //#region src/configs/internal/neurosongsBackEnd.ts
4821
4775
  const internalNeurosongsBackEnd = [
@@ -4840,7 +4794,6 @@ const internalNeurosongsBackEnd = [
4840
4794
  ] }
4841
4795
  }
4842
4796
  ];
4843
-
4844
4797
  //#endregion
4845
4798
  //#region src/configs/helpers/restrictedImports/neurosongsFrontEndRestrictedImports.ts
4846
4799
  const neurosongsFrontEndRestrictedImports = combineRestrictedImports(personalRestrictedImports, reactRestrictedImports, {
@@ -4860,7 +4813,6 @@ const neurosongsFrontEndRestrictedImports = combineRestrictedImports(personalRes
4860
4813
  message: "Do not use the Prisma Client directly in the front-end. Query an endpoint from the back-end instead."
4861
4814
  }]
4862
4815
  });
4863
-
4864
4816
  //#endregion
4865
4817
  //#region src/configs/internal/neurosongsFrontEnd.ts
4866
4818
  const internalNeurosongsFrontEnd = [{
@@ -4871,7 +4823,6 @@ const internalNeurosongsFrontEnd = [{
4871
4823
  "no-restricted-imports": ["error", neurosongsFrontEndRestrictedImports]
4872
4824
  }
4873
4825
  }];
4874
-
4875
4826
  //#endregion
4876
4827
  //#region src/configs/internal/typeScript.ts
4877
4828
  function internalTypeScript(plugin) {
@@ -4881,7 +4832,8 @@ function internalTypeScript(plugin) {
4881
4832
  name: "@alextheman/internal/typescript",
4882
4833
  plugins: {
4883
4834
  "@alextheman": plugin,
4884
- "@typescript-eslint": tseslint.plugin
4835
+ "@typescript-eslint": tseslint.plugin,
4836
+ "import-x": importPlugin
4885
4837
  },
4886
4838
  rules: {
4887
4839
  "@alextheman/standardise-error-messages": "off",
@@ -4891,11 +4843,16 @@ function internalTypeScript(plugin) {
4891
4843
  "@typescript-eslint/dot-notation": "error",
4892
4844
  "@typescript-eslint/method-signature-style": ["error", "property"],
4893
4845
  "@typescript-eslint/no-explicit-any": "off",
4894
- "@typescript-eslint/no-redeclare": "off"
4895
- }
4846
+ "@typescript-eslint/no-redeclare": "off",
4847
+ "import-x/consistent-type-specifier-style": ["error", "prefer-top-level"]
4848
+ },
4849
+ settings: { "import-x/resolver": {
4850
+ name: "tsResolver",
4851
+ options: { node: true },
4852
+ resolver: tsResolver
4853
+ } }
4896
4854
  }];
4897
4855
  }
4898
-
4899
4856
  //#endregion
4900
4857
  //#region src/configs/helpers/restrictedImports/eslintPluginRestrictedImports.ts
4901
4858
  const eslintPluginRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [
@@ -4921,7 +4878,6 @@ const eslintPluginRestrictedImports = combineRestrictedImports(generalRestricted
4921
4878
  name: "eslint-vitest-rule-tester"
4922
4879
  }
4923
4880
  ] });
4924
-
4925
4881
  //#endregion
4926
4882
  //#region src/configs/internal/eslintPlugin/base.ts
4927
4883
  function internalEslintPluginBase(plugin) {
@@ -4938,7 +4894,6 @@ function internalEslintPluginBase(plugin) {
4938
4894
  }
4939
4895
  }];
4940
4896
  }
4941
-
4942
4897
  //#endregion
4943
4898
  //#region src/configs/internal/eslintPlugin/configs.ts
4944
4899
  function internalEslintPluginConfigs(plugin) {
@@ -4949,7 +4904,6 @@ function internalEslintPluginConfigs(plugin) {
4949
4904
  rules: { "perfectionist/sort-objects": ["error", sortObjects] }
4950
4905
  }];
4951
4906
  }
4952
-
4953
4907
  //#endregion
4954
4908
  //#region src/configs/internal/eslintPlugin/rules.ts
4955
4909
  function internalEslintPluginRules(plugin) {
@@ -4960,7 +4914,6 @@ function internalEslintPluginRules(plugin) {
4960
4914
  rules: { "perfectionist/sort-objects": ["error", sortObjects] }
4961
4915
  }];
4962
4916
  }
4963
-
4964
4917
  //#endregion
4965
4918
  //#region src/configs/internal/eslintPlugin/utility.ts
4966
4919
  function internalEslintPluginUtility(plugin) {
@@ -4970,7 +4923,6 @@ function internalEslintPluginUtility(plugin) {
4970
4923
  rules: { "jsdoc/require-jsdoc": ["error", requireJsdocOptions] }
4971
4924
  }];
4972
4925
  }
4973
-
4974
4926
  //#endregion
4975
4927
  //#region src/configs/internal/utility/base.ts
4976
4928
  function internalUtilityBase(plugin) {
@@ -4986,13 +4938,11 @@ function internalUtilityBase(plugin) {
4986
4938
  }
4987
4939
  }];
4988
4940
  }
4989
-
4990
4941
  //#endregion
4991
4942
  //#region src/configs/internal/utility/internal.ts
4992
4943
  function internalUtilityRoot$1(plugin) {
4993
4944
  return [...internalUtilityBase(plugin), { rules: { "jsdoc/require-jsdoc": "off" } }];
4994
4945
  }
4995
-
4996
4946
  //#endregion
4997
4947
  //#region src/configs/internal/utility/root.ts
4998
4948
  function internalUtilityRoot(plugin) {
@@ -5001,7 +4951,6 @@ function internalUtilityRoot(plugin) {
5001
4951
  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."
5002
4952
  }] })] } }];
5003
4953
  }
5004
-
5005
4954
  //#endregion
5006
4955
  //#region src/configs/combined/typeScript.ts
5007
4956
  function combinedTypeScript(plugin) {
@@ -5013,7 +4962,6 @@ function combinedTypeScript(plugin) {
5013
4962
  ...internalTypeScript(plugin)
5014
4963
  ];
5015
4964
  }
5016
-
5017
4965
  //#endregion
5018
4966
  //#region src/configs/combined/typeScriptPackage.ts
5019
4967
  function combinedTypeScriptPackage(plugin) {
@@ -5023,7 +4971,6 @@ function combinedTypeScriptPackage(plugin) {
5023
4971
  ...internalJsdoc
5024
4972
  ];
5025
4973
  }
5026
-
5027
4974
  //#endregion
5028
4975
  //#region src/configs/combined/typeScriptReact.ts
5029
4976
  function combinedTypeScriptReact(plugin) {
@@ -5033,7 +4980,6 @@ function combinedTypeScriptReact(plugin) {
5033
4980
  ...combinedReact
5034
4981
  ];
5035
4982
  }
5036
-
5037
4983
  //#endregion
5038
4984
  //#region src/configs/internal/packageJson.ts
5039
4985
  const internalPackageJson = [...generalPackageJson, {
@@ -5043,7 +4989,6 @@ const internalPackageJson = [...generalPackageJson, {
5043
4989
  rangeType: "pin"
5044
4990
  }] }
5045
4991
  }];
5046
-
5047
4992
  //#endregion
5048
4993
  //#region src/configs/index.ts
5049
4994
  function createAlexPluginConfigs(plugin) {
@@ -5088,13 +5033,11 @@ function createAlexPluginConfigs(plugin) {
5088
5033
  }
5089
5034
  });
5090
5035
  }
5091
-
5092
5036
  //#endregion
5093
5037
  //#region src/rules/helpers/createRule.ts
5094
5038
  const createRule = ESLintUtils.RuleCreator((ruleName) => {
5095
5039
  return ruleName;
5096
5040
  });
5097
-
5098
5041
  //#endregion
5099
5042
  //#region src/rules/consistent-test-function.ts
5100
5043
  const validTestFunctionsSchema = z.enum(["test", "it"]);
@@ -5188,7 +5131,6 @@ const consistentTestFunction = createRule({
5188
5131
  };
5189
5132
  }
5190
5133
  });
5191
-
5192
5134
  //#endregion
5193
5135
  //#region src/rules/has-standards.ts
5194
5136
  const hasStandardsOptionsSchema = z.object({ fixable: z.boolean() }).partial();
@@ -5227,7 +5169,6 @@ const hasStandards = createRule({
5227
5169
  } };
5228
5170
  }
5229
5171
  });
5230
-
5231
5172
  //#endregion
5232
5173
  //#region src/rules/no-isolated-tests.ts
5233
5174
  const noIsolatedTests = createRule({
@@ -5249,7 +5190,6 @@ const noIsolatedTests = createRule({
5249
5190
  } };
5250
5191
  }
5251
5192
  });
5252
-
5253
5193
  //#endregion
5254
5194
  //#region src/rules/no-namespace-imports.ts
5255
5195
  const noNamespaceImportsOptionsSchema = z.object({ allow: z.array(z.string()) }).partial();
@@ -5280,7 +5220,6 @@ const noNamespaceImports = createRule({
5280
5220
  } };
5281
5221
  }
5282
5222
  });
5283
-
5284
5223
  //#endregion
5285
5224
  //#region src/rules/no-plugin-configs-access-from-src-configs.ts
5286
5225
  const noPluginConfigAccessFromSrcConfigs = createRule({
@@ -5304,7 +5243,6 @@ const noPluginConfigAccessFromSrcConfigs = createRule({
5304
5243
  } };
5305
5244
  }
5306
5245
  });
5307
-
5308
5246
  //#endregion
5309
5247
  //#region src/rules/no-relative-imports.ts
5310
5248
  const noRelativeImportsOptionsSchema = z.object({ depth: z.int().nonnegative() }).partial();
@@ -5371,7 +5309,6 @@ const noRelativeImports = createRule({
5371
5309
  } };
5372
5310
  }
5373
5311
  });
5374
-
5375
5312
  //#endregion
5376
5313
  //#region src/rules/no-skipped-tests.ts
5377
5314
  const noSkippedTests = createRule({
@@ -5393,7 +5330,6 @@ const noSkippedTests = createRule({
5393
5330
  } };
5394
5331
  }
5395
5332
  });
5396
-
5397
5333
  //#endregion
5398
5334
  //#region src/rules/standardise-error-messages.ts
5399
5335
  const standardiseErrorMessagesOptionsSchema = z.object({ regex: z.string() }).partial();
@@ -5437,7 +5373,6 @@ const standardiseErrorMessages = createRule({
5437
5373
  };
5438
5374
  }
5439
5375
  });
5440
-
5441
5376
  //#endregion
5442
5377
  //#region src/rules/use-normalized-imports.ts
5443
5378
  const useNormalizedImportsOptionsSchema = z.object({ fixable: z.boolean() }).partial();
@@ -5473,7 +5408,6 @@ const useNormalizedImports = createRule({
5473
5408
  } };
5474
5409
  }
5475
5410
  });
5476
-
5477
5411
  //#endregion
5478
5412
  //#region src/rules/use-object-shorthand.ts
5479
5413
  const useObjectShorthandOptionsSchema = z.object({ fixable: z.boolean() }).partial();
@@ -5505,68 +5439,31 @@ const useObjectShorthand = createRule({
5505
5439
  } };
5506
5440
  }
5507
5441
  });
5508
-
5509
- //#endregion
5510
- //#region src/rules/index.ts
5511
- var rules_default = {
5512
- "consistent-test-function": consistentTestFunction,
5513
- "has-standards": hasStandards,
5514
- "no-isolated-tests": noIsolatedTests,
5515
- "no-namespace-imports": noNamespaceImports,
5516
- "no-plugin-configs-access-from-src-configs": noPluginConfigAccessFromSrcConfigs,
5517
- "no-relative-imports": noRelativeImports,
5518
- "no-skipped-tests": noSkippedTests,
5519
- "standardise-error-messages": standardiseErrorMessages,
5520
- "use-normalized-imports": useNormalizedImports,
5521
- "use-object-shorthand": useObjectShorthand
5522
- };
5523
-
5524
- //#endregion
5525
- //#region package.json
5526
- var name = "@alextheman/eslint-plugin";
5527
- var version = "5.12.0";
5528
-
5529
5442
  //#endregion
5530
5443
  //#region src/alexPlugin.ts
5531
5444
  const alexPlugin = {
5532
5445
  meta: {
5533
- name,
5534
- version,
5446
+ name: "@alextheman/eslint-plugin",
5447
+ version: "5.13.0",
5535
5448
  namespace: "alextheman"
5536
5449
  },
5537
5450
  configs: {},
5538
- rules: rules_default
5451
+ rules: {
5452
+ "consistent-test-function": consistentTestFunction,
5453
+ "has-standards": hasStandards,
5454
+ "no-isolated-tests": noIsolatedTests,
5455
+ "no-namespace-imports": noNamespaceImports,
5456
+ "no-plugin-configs-access-from-src-configs": noPluginConfigAccessFromSrcConfigs,
5457
+ "no-relative-imports": noRelativeImports,
5458
+ "no-skipped-tests": noSkippedTests,
5459
+ "standardise-error-messages": standardiseErrorMessages,
5460
+ "use-normalized-imports": useNormalizedImports,
5461
+ "use-object-shorthand": useObjectShorthand
5462
+ }
5539
5463
  };
5540
5464
  alexPlugin.configs = createAlexPluginConfigs(deepFreeze(deepCopy(alexPlugin)));
5541
-
5542
- //#endregion
5543
- //#region src/configs/external/typeDocConfig.ts
5544
- function typeDocConfig(entryPoints = ["./src/index.ts"]) {
5545
- return {
5546
- disableSources: true,
5547
- entryPoints,
5548
- excludeNotDocumented: true,
5549
- includeVersion: true,
5550
- outputs: [{
5551
- name: "html",
5552
- options: { navigation: {
5553
- excludeReferences: false,
5554
- includeCategories: true,
5555
- includeFolders: true,
5556
- includeGroups: true
5557
- } },
5558
- path: "docs/features/html"
5559
- }, {
5560
- name: "markdown",
5561
- path: "docs/features/markdown"
5562
- }],
5563
- plugin: ["typedoc-plugin-markdown", "typedoc-rhineai-theme"]
5564
- };
5565
- }
5566
-
5567
5465
  //#endregion
5568
5466
  //#region src/index.ts
5569
5467
  var src_default = alexPlugin;
5570
-
5571
5468
  //#endregion
5572
- export { checkCallExpression, combineRestrictedImports, createRuleSchemaFromZodSchema, src_default as default, fixOnCondition, flattenConfigs, getImportSpecifiersAfterRemoving, prettierConfig, typeDocConfig };
5469
+ export { checkCallExpression, combineRestrictedImports, createRuleSchemaFromZodSchema, src_default as default, fixOnCondition, flattenConfigs, getImportSpecifiersAfterRemoving, prettierConfig };