@alextheman/eslint-plugin 5.11.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.cjs CHANGED
@@ -1,4 +1,7 @@
1
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
4
+ });
2
5
  //#region \0rolldown/runtime.js
3
6
  var __create = Object.create;
4
7
  var __defProp = Object.defineProperty;
@@ -8,16 +11,12 @@ var __getProtoOf = Object.getPrototypeOf;
8
11
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
12
  var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
10
13
  var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
13
- key = keys[i];
14
- if (!__hasOwnProp.call(to, key) && key !== except) {
15
- __defProp(to, key, {
16
- get: ((k) => from[k]).bind(null, key),
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- }
14
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
15
+ key = keys[i];
16
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: ((k) => from[k]).bind(null, key),
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
21
20
  }
22
21
  return to;
23
22
  };
@@ -25,7 +24,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
25
24
  value: mod,
26
25
  enumerable: true
27
26
  }) : target, mod));
28
-
29
27
  //#endregion
30
28
  let _alextheman_utility = require("@alextheman/utility");
31
29
  let _typescript_eslint_utils = require("@typescript-eslint/utils");
@@ -35,17 +33,16 @@ let _eslint_js = require("@eslint/js");
35
33
  _eslint_js = __toESM(_eslint_js);
36
34
  let eslint_config_prettier = require("eslint-config-prettier");
37
35
  eslint_config_prettier = __toESM(eslint_config_prettier);
38
- let eslint_plugin_import = require("eslint-plugin-import");
39
- eslint_plugin_import = __toESM(eslint_plugin_import);
36
+ let eslint_import_resolver_typescript = require("eslint-import-resolver-typescript");
37
+ eslint_import_resolver_typescript = __toESM(eslint_import_resolver_typescript);
38
+ let eslint_plugin_import_x = require("eslint-plugin-import-x");
39
+ eslint_plugin_import_x = __toESM(eslint_plugin_import_x);
40
40
  let eslint_plugin_n = require("eslint-plugin-n");
41
41
  eslint_plugin_n = __toESM(eslint_plugin_n);
42
42
  let eslint_plugin_perfectionist = require("eslint-plugin-perfectionist");
43
43
  eslint_plugin_perfectionist = __toESM(eslint_plugin_perfectionist);
44
44
  let eslint_plugin_prettier = require("eslint-plugin-prettier");
45
45
  eslint_plugin_prettier = __toESM(eslint_plugin_prettier);
46
- let vite_tsconfig_paths = require("vite-tsconfig-paths");
47
- vite_tsconfig_paths = __toESM(vite_tsconfig_paths);
48
- let vitest_config = require("vitest/config");
49
46
  let typescript_eslint = require("typescript-eslint");
50
47
  typescript_eslint = __toESM(typescript_eslint);
51
48
  let eslint_plugin_jsx_a11y = require("eslint-plugin-jsx-a11y");
@@ -61,7 +58,6 @@ eslint_plugin_package_json = __toESM(eslint_plugin_package_json);
61
58
  let eslint_plugin_jsdoc = require("eslint-plugin-jsdoc");
62
59
  eslint_plugin_jsdoc = __toESM(eslint_plugin_jsdoc);
63
60
  let _alextheman_utility_node = require("@alextheman/utility/node");
64
-
65
61
  //#region node_modules/.pnpm/globals@17.4.0/node_modules/globals/globals.json
66
62
  var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
67
63
  module.exports = {
@@ -4086,20 +4082,17 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4086
4082
  }
4087
4083
  };
4088
4084
  }));
4089
-
4090
4085
  //#endregion
4091
4086
  //#region node_modules/.pnpm/globals@17.4.0/node_modules/globals/index.js
4092
4087
  var require_globals = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4093
4088
  module.exports = require_globals$1();
4094
4089
  }));
4095
-
4096
4090
  //#endregion
4097
4091
  //#region src/configs/helpers/restrictedImports/generalRestrictedImports.ts
4098
4092
  const generalRestrictedImports = { patterns: [{
4099
4093
  group: ["node_modules"],
4100
4094
  message: "Do not import directly from node_modules."
4101
4095
  }] };
4102
-
4103
4096
  //#endregion
4104
4097
  //#region src/utility/public/checkCallExpression.ts
4105
4098
  /**
@@ -4116,7 +4109,6 @@ const generalRestrictedImports = { patterns: [{
4116
4109
  function checkCallExpression(node, objectName, propertyName) {
4117
4110
  return node.callee.type === _typescript_eslint_utils.AST_NODE_TYPES.MemberExpression && node.callee.object.type === _typescript_eslint_utils.AST_NODE_TYPES.Identifier && node.callee.object.name === objectName && node.callee.property.type === _typescript_eslint_utils.AST_NODE_TYPES.Identifier && node.callee.property.name === propertyName;
4118
4111
  }
4119
-
4120
4112
  //#endregion
4121
4113
  //#region src/utility/public/combineRestrictedImports.ts
4122
4114
  /**
@@ -4143,7 +4135,6 @@ function combineRestrictedImports(...groups) {
4143
4135
  if (combinedGroup.patterns.length === 0) return (0, _alextheman_utility.omitProperties)(combinedGroup, "patterns");
4144
4136
  return combinedGroup;
4145
4137
  }
4146
-
4147
4138
  //#endregion
4148
4139
  //#region src/utility/public/createRuleSchemaFromZodSchema.ts
4149
4140
  /**
@@ -4158,7 +4149,6 @@ function combineRestrictedImports(...groups) {
4158
4149
  function createRuleSchemaFromZodSchema(schema) {
4159
4150
  return [(0, _alextheman_utility.omitProperties)(zod.default.toJSONSchema(schema), "$schema")];
4160
4151
  }
4161
-
4162
4152
  //#endregion
4163
4153
  //#region src/utility/public/fixOnCondition.ts
4164
4154
  /**
@@ -4177,14 +4167,12 @@ function fixOnCondition(fixable, fix) {
4177
4167
  return fix(fixer);
4178
4168
  };
4179
4169
  }
4180
-
4181
4170
  //#endregion
4182
4171
  //#region src/utility/private/camelToKebab.ts
4183
4172
  function camelToKebab(string) {
4184
4173
  if (string[0] === string[0].toUpperCase()) throw new _alextheman_utility.DataError({ string }, "CAMEL_TO_KEBAB_CONVERSION_ERROR", "camelCase string must start with a lowercase letter.");
4185
4174
  return (0, _alextheman_utility.camelToKebab)(string, { preserveConsecutiveCapitals: false });
4186
4175
  }
4187
-
4188
4176
  //#endregion
4189
4177
  //#region src/utility/private/createConfigGroup.ts
4190
4178
  function createConfigGroup(group, configs) {
@@ -4192,7 +4180,6 @@ function createConfigGroup(group, configs) {
4192
4180
  for (const key in configs) newConfigs[`${camelToKebab(group)}/${camelToKebab(key)}`] = configs[key];
4193
4181
  return newConfigs;
4194
4182
  }
4195
-
4196
4183
  //#endregion
4197
4184
  //#region src/utility/public/flattenConfigs.ts
4198
4185
  /**
@@ -4237,7 +4224,6 @@ function flattenConfigs(config) {
4237
4224
  for (const configGroupEntries of Object.entries(config)) Object.assign(allConfigs, createConfigGroup(...configGroupEntries));
4238
4225
  return allConfigs;
4239
4226
  }
4240
-
4241
4227
  //#endregion
4242
4228
  //#region src/utility/public/getImportSpecifiersAfterRemoving.ts
4243
4229
  /**
@@ -4262,14 +4248,12 @@ function getImportSpecifiersAfterRemoving(context, specifiers, importToRemove) {
4262
4248
  return context.sourceCode.getText(specifier);
4263
4249
  }).join(", ");
4264
4250
  }
4265
-
4266
4251
  //#endregion
4267
4252
  //#region src/configs/helpers/restrictedImports/testsRestrictedImports.ts
4268
4253
  const testsRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [{
4269
4254
  message: "Use test functions from vitest instead.",
4270
4255
  name: "node:test"
4271
4256
  }] });
4272
-
4273
4257
  //#endregion
4274
4258
  //#region src/configs/internal/tests.ts
4275
4259
  var import_globals = /* @__PURE__ */ __toESM(require_globals(), 1);
@@ -4300,7 +4284,6 @@ const internalTests = [{
4300
4284
  "no-restricted-imports": ["error", testsRestrictedImports]
4301
4285
  }
4302
4286
  }];
4303
-
4304
4287
  //#endregion
4305
4288
  //#region src/configs/plugin/base.ts
4306
4289
  function pluginBase(plugin) {
@@ -4314,7 +4297,6 @@ function pluginBase(plugin) {
4314
4297
  }
4315
4298
  }];
4316
4299
  }
4317
-
4318
4300
  //#endregion
4319
4301
  //#region src/configs/plugin/tests.ts
4320
4302
  function pluginTests(plugin) {
@@ -4329,7 +4311,6 @@ function pluginTests(plugin) {
4329
4311
  }
4330
4312
  }];
4331
4313
  }
4332
-
4333
4314
  //#endregion
4334
4315
  //#region src/configs/combined/tests.ts
4335
4316
  function combinedTests(plugin) {
@@ -4339,7 +4320,6 @@ function combinedTests(plugin) {
4339
4320
  ...internalTests
4340
4321
  ];
4341
4322
  }
4342
-
4343
4323
  //#endregion
4344
4324
  //#region src/configs/helpers/javaScriptLanguageOptions.ts
4345
4325
  const javaScriptLanguageOptions = { globals: {
@@ -4347,7 +4327,6 @@ const javaScriptLanguageOptions = { globals: {
4347
4327
  ...import_globals.default.browser,
4348
4328
  ...import_globals.default.vitest
4349
4329
  } };
4350
-
4351
4330
  //#endregion
4352
4331
  //#region src/configs/helpers/unusedVarsIgnorePatterns.ts
4353
4332
  const unusedVarsIgnorePatterns = {
@@ -4355,7 +4334,6 @@ const unusedVarsIgnorePatterns = {
4355
4334
  caughtErrorsIgnorePattern: "^_",
4356
4335
  varsIgnorePattern: "^_"
4357
4336
  };
4358
-
4359
4337
  //#endregion
4360
4338
  //#region src/configs/general/javaScript.ts
4361
4339
  const generalJavaScript = [
@@ -4373,13 +4351,13 @@ const generalJavaScript = [
4373
4351
  languageOptions: javaScriptLanguageOptions,
4374
4352
  name: "@alextheman/general/javascript",
4375
4353
  plugins: {
4376
- import: eslint_plugin_import.default,
4354
+ "import-x": eslint_plugin_import_x.default,
4377
4355
  n: eslint_plugin_n.default
4378
4356
  },
4379
4357
  rules: {
4380
4358
  eqeqeq: "error",
4381
- "import/no-duplicates": ["error", { "prefer-inline": false }],
4382
- "import/no-unresolved": "error",
4359
+ "import-x/no-duplicates": ["error", { "prefer-inline": false }],
4360
+ "import-x/no-unresolved": "error",
4383
4361
  "n/file-extension-in-import": [
4384
4362
  "error",
4385
4363
  "always",
@@ -4411,52 +4389,16 @@ const generalJavaScript = [
4411
4389
  "no-useless-return": "error",
4412
4390
  "prefer-const": "error"
4413
4391
  },
4414
- settings: { "import/resolver": { node: true } }
4392
+ settings: { "import-x/resolver": {
4393
+ name: "tsResolver",
4394
+ options: { node: true },
4395
+ resolver: eslint_import_resolver_typescript
4396
+ } }
4415
4397
  }
4416
4398
  ];
4417
-
4418
4399
  //#endregion
4419
4400
  //#region src/configs/external/prettierConfig.ts
4420
4401
  const prettierConfig = { printWidth: 100 };
4421
-
4422
- //#endregion
4423
- //#region src/configs/external/typeDocConfig.ts
4424
- function typeDocConfig(entryPoints = ["./src/index.ts"]) {
4425
- return {
4426
- disableSources: true,
4427
- entryPoints,
4428
- excludeNotDocumented: true,
4429
- includeVersion: true,
4430
- outputs: [{
4431
- name: "html",
4432
- options: { navigation: {
4433
- excludeReferences: false,
4434
- includeCategories: true,
4435
- includeFolders: true,
4436
- includeGroups: true
4437
- } },
4438
- path: "docs/features/html"
4439
- }, {
4440
- name: "markdown",
4441
- path: "docs/features/markdown"
4442
- }],
4443
- plugin: ["typedoc-plugin-markdown", "typedoc-rhineai-theme"]
4444
- };
4445
- }
4446
-
4447
- //#endregion
4448
- //#region src/configs/external/vitestConfig.ts
4449
- function vitestConfig(environment = "jsdom") {
4450
- return (0, vitest_config.defineConfig)({
4451
- plugins: [(0, vite_tsconfig_paths.default)()],
4452
- test: {
4453
- environment,
4454
- globals: true,
4455
- include: ["**/tests/**/*.test.ts"]
4456
- }
4457
- });
4458
- }
4459
-
4460
4402
  //#endregion
4461
4403
  //#region src/configs/helpers/reactLanguageOptions.ts
4462
4404
  const reactLanguageOptions = {
@@ -4464,7 +4406,6 @@ const reactLanguageOptions = {
4464
4406
  globals: import_globals.default.browser,
4465
4407
  parserOptions: { ecmaFeatures: { jsx: true } }
4466
4408
  };
4467
-
4468
4409
  //#endregion
4469
4410
  //#region src/configs/helpers/typeScriptLanguageOptions.ts
4470
4411
  const typeScriptLanguageOptions = {
@@ -4476,7 +4417,6 @@ const typeScriptLanguageOptions = {
4476
4417
  tsconfigRootDir: process.cwd()
4477
4418
  }
4478
4419
  };
4479
-
4480
4420
  //#endregion
4481
4421
  //#region src/configs/helpers/sorting/sortClasses.ts
4482
4422
  const sortClasses = {
@@ -4503,7 +4443,6 @@ const sortClasses = {
4503
4443
  specialCharacters: "keep",
4504
4444
  type: "alphabetical"
4505
4445
  };
4506
-
4507
4446
  //#endregion
4508
4447
  //#region src/configs/helpers/sorting/sortExports.ts
4509
4448
  const sortExports = {
@@ -4523,7 +4462,6 @@ const sortExports = {
4523
4462
  specialCharacters: "keep",
4524
4463
  type: "alphabetical"
4525
4464
  };
4526
-
4527
4465
  //#endregion
4528
4466
  //#region src/configs/helpers/sorting/sortImports.ts
4529
4467
  const sortImports = {
@@ -4562,7 +4500,6 @@ const sortImports = {
4562
4500
  specialCharacters: "keep",
4563
4501
  type: "alphabetical"
4564
4502
  };
4565
-
4566
4503
  //#endregion
4567
4504
  //#region src/configs/helpers/sorting/sortObjects.ts
4568
4505
  const sortObjects = {
@@ -4579,7 +4516,6 @@ const sortObjects = {
4579
4516
  type: "alphabetical",
4580
4517
  useConfigurationIf: {}
4581
4518
  };
4582
-
4583
4519
  //#endregion
4584
4520
  //#region src/configs/helpers/restrictedImports/personalRestrictedImports.ts
4585
4521
  const personalRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [...["fs", "node:fs"].map((name) => {
@@ -4588,7 +4524,6 @@ const personalRestrictedImports = combineRestrictedImports(generalRestrictedImpo
4588
4524
  name
4589
4525
  };
4590
4526
  })] });
4591
-
4592
4527
  //#endregion
4593
4528
  //#region src/configs/helpers/sorting/sortNamedImports.ts
4594
4529
  const sortNamedImports = {
@@ -4603,7 +4538,6 @@ const sortNamedImports = {
4603
4538
  specialCharacters: "keep",
4604
4539
  type: "alphabetical"
4605
4540
  };
4606
-
4607
4541
  //#endregion
4608
4542
  //#region src/configs/internal/javaScript.ts
4609
4543
  function internalJavaScript(plugin) {
@@ -4618,7 +4552,6 @@ function internalJavaScript(plugin) {
4618
4552
  name: "@alextheman/internal/javascript",
4619
4553
  plugins: {
4620
4554
  "@alextheman": plugin,
4621
- import: eslint_plugin_import.default,
4622
4555
  n: eslint_plugin_n.default,
4623
4556
  perfectionist: eslint_plugin_perfectionist.default,
4624
4557
  prettier: eslint_plugin_prettier.default
@@ -4632,7 +4565,6 @@ function internalJavaScript(plugin) {
4632
4565
  "declaration",
4633
4566
  { allowArrowFunctions: false }
4634
4567
  ],
4635
- "import/consistent-type-specifier-style": ["error", "prefer-top-level"],
4636
4568
  "n/no-extraneous-import": "off",
4637
4569
  "no-else-return": "error",
4638
4570
  "no-implicit-coercion": ["error", { allow: ["!!"] }],
@@ -4653,7 +4585,6 @@ function internalJavaScript(plugin) {
4653
4585
  rules: { "@alextheman/no-relative-imports": ["error", { depth: 0 }] }
4654
4586
  }];
4655
4587
  }
4656
-
4657
4588
  //#endregion
4658
4589
  //#region src/configs/combined/javaScript.ts
4659
4590
  function combinedJavaScript(plugin) {
@@ -4665,7 +4596,6 @@ function combinedJavaScript(plugin) {
4665
4596
  ...combinedTests(plugin)
4666
4597
  ];
4667
4598
  }
4668
-
4669
4599
  //#endregion
4670
4600
  //#region src/configs/helpers/eslint-plugin-react-hooks.ts
4671
4601
  const reactHooks = {
@@ -4676,7 +4606,6 @@ const reactHooks = {
4676
4606
  "flat/recommended-latest": eslint_plugin_react_hooks.default.configs.flat["recommended-latest"]
4677
4607
  }
4678
4608
  };
4679
-
4680
4609
  //#endregion
4681
4610
  //#region src/configs/general/react.ts
4682
4611
  const generalReact = [
@@ -4711,14 +4640,12 @@ const generalReact = [
4711
4640
  settings: { react: { version: "detect" } }
4712
4641
  }
4713
4642
  ];
4714
-
4715
4643
  //#endregion
4716
4644
  //#region src/configs/helpers/restrictedImports/reactRestrictedImports.ts
4717
4645
  const reactRestrictedImports = combineRestrictedImports(generalRestrictedImports, { patterns: [{
4718
4646
  message: "Please use `import Component from \"@mui/[package]/Component\"` instead. See https://mui.com/material-ui/guides/minimizing-bundle-size/ for more information.",
4719
4647
  regex: "^@mui/[^/]+$"
4720
4648
  }] });
4721
-
4722
4649
  //#endregion
4723
4650
  //#region src/configs/internal/react.ts
4724
4651
  const internalReact = [{
@@ -4737,7 +4664,6 @@ const internalReact = [{
4737
4664
  "react/jsx-boolean-value": "error"
4738
4665
  }
4739
4666
  }];
4740
-
4741
4667
  //#endregion
4742
4668
  //#region src/configs/combined/react.ts
4743
4669
  const combinedReact = [
@@ -4745,7 +4671,6 @@ const combinedReact = [
4745
4671
  ...generalReact,
4746
4672
  ...internalReact
4747
4673
  ];
4748
-
4749
4674
  //#endregion
4750
4675
  //#region src/configs/combined/javaScriptReact.ts
4751
4676
  function combinedJavaScriptReact(plugin) {
@@ -4755,14 +4680,12 @@ function combinedJavaScriptReact(plugin) {
4755
4680
  ...combinedReact
4756
4681
  ];
4757
4682
  }
4758
-
4759
4683
  //#endregion
4760
4684
  //#region src/configs/general/packageJson.ts
4761
4685
  const generalPackageJson = [eslint_plugin_package_json.default.configs.recommended, {
4762
4686
  plugins: { "package-json": eslint_plugin_package_json.default },
4763
4687
  rules: { "package-json/scripts-name-casing": "error" }
4764
4688
  }];
4765
-
4766
4689
  //#endregion
4767
4690
  //#region src/configs/general/typeScript.ts
4768
4691
  const generalTypeScript = [
@@ -4786,7 +4709,6 @@ const generalTypeScript = [
4786
4709
  }
4787
4710
  }
4788
4711
  ];
4789
-
4790
4712
  //#endregion
4791
4713
  //#region src/configs/internal/alexCLine.ts
4792
4714
  function internalAlexCLine(plugin) {
@@ -4805,7 +4727,6 @@ function internalAlexCLine(plugin) {
4805
4727
  }
4806
4728
  ];
4807
4729
  }
4808
-
4809
4730
  //#endregion
4810
4731
  //#region src/configs/helpers/requireJsdocOptions.ts
4811
4732
  const requireJsdocOptions = {
@@ -4816,7 +4737,6 @@ const requireJsdocOptions = {
4816
4737
  MethodDefinition: true
4817
4738
  }
4818
4739
  };
4819
-
4820
4740
  //#endregion
4821
4741
  //#region src/configs/internal/jsdoc.ts
4822
4742
  const internalJsdoc = [eslint_plugin_jsdoc.default.configs["flat/recommended-typescript-error"], { rules: {
@@ -4843,7 +4763,6 @@ const internalJsdoc = [eslint_plugin_jsdoc.default.configs["flat/recommended-typ
4843
4763
  { startLines: 1 }
4844
4764
  ]
4845
4765
  } }];
4846
-
4847
4766
  //#endregion
4848
4767
  //#region src/configs/internal/components.ts
4849
4768
  const internalComponents = [...internalJsdoc, { rules: {
@@ -4852,7 +4771,6 @@ const internalComponents = [...internalJsdoc, { rules: {
4852
4771
  "jsdoc/require-returns": "off",
4853
4772
  "jsdoc/require-tags": "off"
4854
4773
  } }];
4855
-
4856
4774
  //#endregion
4857
4775
  //#region src/configs/helpers/restrictedImports/neurosongsBackEndRestrictedImports.ts
4858
4776
  const neurosongsBackEndRestrictedImports = combineRestrictedImports(personalRestrictedImports, { paths: [
@@ -4871,7 +4789,6 @@ const neurosongsBackEndRestrictedImports = combineRestrictedImports(personalRest
4871
4789
  name: "@neurosongs/prisma-client/prisma"
4872
4790
  }
4873
4791
  ] });
4874
-
4875
4792
  //#endregion
4876
4793
  //#region src/configs/internal/neurosongsBackEnd.ts
4877
4794
  const internalNeurosongsBackEnd = [
@@ -4896,7 +4813,6 @@ const internalNeurosongsBackEnd = [
4896
4813
  ] }
4897
4814
  }
4898
4815
  ];
4899
-
4900
4816
  //#endregion
4901
4817
  //#region src/configs/helpers/restrictedImports/neurosongsFrontEndRestrictedImports.ts
4902
4818
  const neurosongsFrontEndRestrictedImports = combineRestrictedImports(personalRestrictedImports, reactRestrictedImports, {
@@ -4916,7 +4832,6 @@ const neurosongsFrontEndRestrictedImports = combineRestrictedImports(personalRes
4916
4832
  message: "Do not use the Prisma Client directly in the front-end. Query an endpoint from the back-end instead."
4917
4833
  }]
4918
4834
  });
4919
-
4920
4835
  //#endregion
4921
4836
  //#region src/configs/internal/neurosongsFrontEnd.ts
4922
4837
  const internalNeurosongsFrontEnd = [{
@@ -4927,7 +4842,6 @@ const internalNeurosongsFrontEnd = [{
4927
4842
  "no-restricted-imports": ["error", neurosongsFrontEndRestrictedImports]
4928
4843
  }
4929
4844
  }];
4930
-
4931
4845
  //#endregion
4932
4846
  //#region src/configs/internal/typeScript.ts
4933
4847
  function internalTypeScript(plugin) {
@@ -4937,7 +4851,8 @@ function internalTypeScript(plugin) {
4937
4851
  name: "@alextheman/internal/typescript",
4938
4852
  plugins: {
4939
4853
  "@alextheman": plugin,
4940
- "@typescript-eslint": typescript_eslint.default.plugin
4854
+ "@typescript-eslint": typescript_eslint.default.plugin,
4855
+ "import-x": eslint_plugin_import_x.default
4941
4856
  },
4942
4857
  rules: {
4943
4858
  "@alextheman/standardise-error-messages": "off",
@@ -4947,11 +4862,16 @@ function internalTypeScript(plugin) {
4947
4862
  "@typescript-eslint/dot-notation": "error",
4948
4863
  "@typescript-eslint/method-signature-style": ["error", "property"],
4949
4864
  "@typescript-eslint/no-explicit-any": "off",
4950
- "@typescript-eslint/no-redeclare": "off"
4951
- }
4865
+ "@typescript-eslint/no-redeclare": "off",
4866
+ "import-x/consistent-type-specifier-style": ["error", "prefer-top-level"]
4867
+ },
4868
+ settings: { "import-x/resolver": {
4869
+ name: "tsResolver",
4870
+ options: { node: true },
4871
+ resolver: eslint_import_resolver_typescript
4872
+ } }
4952
4873
  }];
4953
4874
  }
4954
-
4955
4875
  //#endregion
4956
4876
  //#region src/configs/helpers/restrictedImports/eslintPluginRestrictedImports.ts
4957
4877
  const eslintPluginRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [
@@ -4977,7 +4897,6 @@ const eslintPluginRestrictedImports = combineRestrictedImports(generalRestricted
4977
4897
  name: "eslint-vitest-rule-tester"
4978
4898
  }
4979
4899
  ] });
4980
-
4981
4900
  //#endregion
4982
4901
  //#region src/configs/internal/eslintPlugin/base.ts
4983
4902
  function internalEslintPluginBase(plugin) {
@@ -4994,7 +4913,6 @@ function internalEslintPluginBase(plugin) {
4994
4913
  }
4995
4914
  }];
4996
4915
  }
4997
-
4998
4916
  //#endregion
4999
4917
  //#region src/configs/internal/eslintPlugin/configs.ts
5000
4918
  function internalEslintPluginConfigs(plugin) {
@@ -5005,7 +4923,6 @@ function internalEslintPluginConfigs(plugin) {
5005
4923
  rules: { "perfectionist/sort-objects": ["error", sortObjects] }
5006
4924
  }];
5007
4925
  }
5008
-
5009
4926
  //#endregion
5010
4927
  //#region src/configs/internal/eslintPlugin/rules.ts
5011
4928
  function internalEslintPluginRules(plugin) {
@@ -5016,7 +4933,6 @@ function internalEslintPluginRules(plugin) {
5016
4933
  rules: { "perfectionist/sort-objects": ["error", sortObjects] }
5017
4934
  }];
5018
4935
  }
5019
-
5020
4936
  //#endregion
5021
4937
  //#region src/configs/internal/eslintPlugin/utility.ts
5022
4938
  function internalEslintPluginUtility(plugin) {
@@ -5026,7 +4942,6 @@ function internalEslintPluginUtility(plugin) {
5026
4942
  rules: { "jsdoc/require-jsdoc": ["error", requireJsdocOptions] }
5027
4943
  }];
5028
4944
  }
5029
-
5030
4945
  //#endregion
5031
4946
  //#region src/configs/internal/utility/base.ts
5032
4947
  function internalUtilityBase(plugin) {
@@ -5042,13 +4957,11 @@ function internalUtilityBase(plugin) {
5042
4957
  }
5043
4958
  }];
5044
4959
  }
5045
-
5046
4960
  //#endregion
5047
4961
  //#region src/configs/internal/utility/internal.ts
5048
4962
  function internalUtilityRoot$1(plugin) {
5049
4963
  return [...internalUtilityBase(plugin), { rules: { "jsdoc/require-jsdoc": "off" } }];
5050
4964
  }
5051
-
5052
4965
  //#endregion
5053
4966
  //#region src/configs/internal/utility/root.ts
5054
4967
  function internalUtilityRoot(plugin) {
@@ -5057,7 +4970,6 @@ function internalUtilityRoot(plugin) {
5057
4970
  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."
5058
4971
  }] })] } }];
5059
4972
  }
5060
-
5061
4973
  //#endregion
5062
4974
  //#region src/configs/combined/typeScript.ts
5063
4975
  function combinedTypeScript(plugin) {
@@ -5069,7 +4981,6 @@ function combinedTypeScript(plugin) {
5069
4981
  ...internalTypeScript(plugin)
5070
4982
  ];
5071
4983
  }
5072
-
5073
4984
  //#endregion
5074
4985
  //#region src/configs/combined/typeScriptPackage.ts
5075
4986
  function combinedTypeScriptPackage(plugin) {
@@ -5079,7 +4990,6 @@ function combinedTypeScriptPackage(plugin) {
5079
4990
  ...internalJsdoc
5080
4991
  ];
5081
4992
  }
5082
-
5083
4993
  //#endregion
5084
4994
  //#region src/configs/combined/typeScriptReact.ts
5085
4995
  function combinedTypeScriptReact(plugin) {
@@ -5089,7 +4999,6 @@ function combinedTypeScriptReact(plugin) {
5089
4999
  ...combinedReact
5090
5000
  ];
5091
5001
  }
5092
-
5093
5002
  //#endregion
5094
5003
  //#region src/configs/internal/packageJson.ts
5095
5004
  const internalPackageJson = [...generalPackageJson, {
@@ -5099,7 +5008,6 @@ const internalPackageJson = [...generalPackageJson, {
5099
5008
  rangeType: "pin"
5100
5009
  }] }
5101
5010
  }];
5102
-
5103
5011
  //#endregion
5104
5012
  //#region src/configs/index.ts
5105
5013
  function createAlexPluginConfigs(plugin) {
@@ -5144,13 +5052,11 @@ function createAlexPluginConfigs(plugin) {
5144
5052
  }
5145
5053
  });
5146
5054
  }
5147
-
5148
5055
  //#endregion
5149
5056
  //#region src/rules/helpers/createRule.ts
5150
5057
  const createRule = _typescript_eslint_utils.ESLintUtils.RuleCreator((ruleName) => {
5151
5058
  return ruleName;
5152
5059
  });
5153
-
5154
5060
  //#endregion
5155
5061
  //#region src/rules/consistent-test-function.ts
5156
5062
  const validTestFunctionsSchema = zod.default.enum(["test", "it"]);
@@ -5244,7 +5150,6 @@ const consistentTestFunction = createRule({
5244
5150
  };
5245
5151
  }
5246
5152
  });
5247
-
5248
5153
  //#endregion
5249
5154
  //#region src/rules/has-standards.ts
5250
5155
  const hasStandardsOptionsSchema = zod.default.object({ fixable: zod.default.boolean() }).partial();
@@ -5283,7 +5188,6 @@ const hasStandards = createRule({
5283
5188
  } };
5284
5189
  }
5285
5190
  });
5286
-
5287
5191
  //#endregion
5288
5192
  //#region src/rules/no-isolated-tests.ts
5289
5193
  const noIsolatedTests = createRule({
@@ -5305,7 +5209,6 @@ const noIsolatedTests = createRule({
5305
5209
  } };
5306
5210
  }
5307
5211
  });
5308
-
5309
5212
  //#endregion
5310
5213
  //#region src/rules/no-namespace-imports.ts
5311
5214
  const noNamespaceImportsOptionsSchema = zod.default.object({ allow: zod.default.array(zod.default.string()) }).partial();
@@ -5336,7 +5239,6 @@ const noNamespaceImports = createRule({
5336
5239
  } };
5337
5240
  }
5338
5241
  });
5339
-
5340
5242
  //#endregion
5341
5243
  //#region src/rules/no-plugin-configs-access-from-src-configs.ts
5342
5244
  const noPluginConfigAccessFromSrcConfigs = createRule({
@@ -5360,7 +5262,6 @@ const noPluginConfigAccessFromSrcConfigs = createRule({
5360
5262
  } };
5361
5263
  }
5362
5264
  });
5363
-
5364
5265
  //#endregion
5365
5266
  //#region src/rules/no-relative-imports.ts
5366
5267
  const noRelativeImportsOptionsSchema = zod.default.object({ depth: zod.default.int().nonnegative() }).partial();
@@ -5427,7 +5328,6 @@ const noRelativeImports = createRule({
5427
5328
  } };
5428
5329
  }
5429
5330
  });
5430
-
5431
5331
  //#endregion
5432
5332
  //#region src/rules/no-skipped-tests.ts
5433
5333
  const noSkippedTests = createRule({
@@ -5449,7 +5349,6 @@ const noSkippedTests = createRule({
5449
5349
  } };
5450
5350
  }
5451
5351
  });
5452
-
5453
5352
  //#endregion
5454
5353
  //#region src/rules/standardise-error-messages.ts
5455
5354
  const standardiseErrorMessagesOptionsSchema = zod.default.object({ regex: zod.default.string() }).partial();
@@ -5493,7 +5392,6 @@ const standardiseErrorMessages = createRule({
5493
5392
  };
5494
5393
  }
5495
5394
  });
5496
-
5497
5395
  //#endregion
5498
5396
  //#region src/rules/use-normalized-imports.ts
5499
5397
  const useNormalizedImportsOptionsSchema = zod.default.object({ fixable: zod.default.boolean() }).partial();
@@ -5529,7 +5427,6 @@ const useNormalizedImports = createRule({
5529
5427
  } };
5530
5428
  }
5531
5429
  });
5532
-
5533
5430
  //#endregion
5534
5431
  //#region src/rules/use-object-shorthand.ts
5535
5432
  const useObjectShorthandOptionsSchema = zod.default.object({ fixable: zod.default.boolean() }).partial();
@@ -5561,44 +5458,32 @@ const useObjectShorthand = createRule({
5561
5458
  } };
5562
5459
  }
5563
5460
  });
5564
-
5565
- //#endregion
5566
- //#region src/rules/index.ts
5567
- var rules_default = {
5568
- "consistent-test-function": consistentTestFunction,
5569
- "has-standards": hasStandards,
5570
- "no-isolated-tests": noIsolatedTests,
5571
- "no-namespace-imports": noNamespaceImports,
5572
- "no-plugin-configs-access-from-src-configs": noPluginConfigAccessFromSrcConfigs,
5573
- "no-relative-imports": noRelativeImports,
5574
- "no-skipped-tests": noSkippedTests,
5575
- "standardise-error-messages": standardiseErrorMessages,
5576
- "use-normalized-imports": useNormalizedImports,
5577
- "use-object-shorthand": useObjectShorthand
5578
- };
5579
-
5580
- //#endregion
5581
- //#region package.json
5582
- var name = "@alextheman/eslint-plugin";
5583
- var version = "5.11.0";
5584
-
5585
5461
  //#endregion
5586
5462
  //#region src/alexPlugin.ts
5587
5463
  const alexPlugin = {
5588
5464
  meta: {
5589
- name,
5590
- version,
5465
+ name: "@alextheman/eslint-plugin",
5466
+ version: "5.13.0",
5591
5467
  namespace: "alextheman"
5592
5468
  },
5593
5469
  configs: {},
5594
- rules: rules_default
5470
+ rules: {
5471
+ "consistent-test-function": consistentTestFunction,
5472
+ "has-standards": hasStandards,
5473
+ "no-isolated-tests": noIsolatedTests,
5474
+ "no-namespace-imports": noNamespaceImports,
5475
+ "no-plugin-configs-access-from-src-configs": noPluginConfigAccessFromSrcConfigs,
5476
+ "no-relative-imports": noRelativeImports,
5477
+ "no-skipped-tests": noSkippedTests,
5478
+ "standardise-error-messages": standardiseErrorMessages,
5479
+ "use-normalized-imports": useNormalizedImports,
5480
+ "use-object-shorthand": useObjectShorthand
5481
+ }
5595
5482
  };
5596
5483
  alexPlugin.configs = createAlexPluginConfigs((0, _alextheman_utility.deepFreeze)((0, _alextheman_utility.deepCopy)(alexPlugin)));
5597
-
5598
5484
  //#endregion
5599
5485
  //#region src/index.ts
5600
5486
  var src_default = alexPlugin;
5601
-
5602
5487
  //#endregion
5603
5488
  exports.checkCallExpression = checkCallExpression;
5604
5489
  exports.combineRestrictedImports = combineRestrictedImports;
@@ -5608,5 +5493,3 @@ exports.fixOnCondition = fixOnCondition;
5608
5493
  exports.flattenConfigs = flattenConfigs;
5609
5494
  exports.getImportSpecifiersAfterRemoving = getImportSpecifiersAfterRemoving;
5610
5495
  exports.prettierConfig = prettierConfig;
5611
- exports.typeDocConfig = typeDocConfig;
5612
- exports.vitestConfig = vitestConfig;