@alextheman/eslint-plugin 1.12.1 → 1.12.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.
package/dist/index.cjs CHANGED
@@ -3706,14 +3706,14 @@ module.exports = __toCommonJS(index_exports);
3706
3706
 
3707
3707
  // package.json
3708
3708
  var name = "@alextheman/eslint-plugin";
3709
- var version = "1.12.1";
3709
+ var version = "1.12.2";
3710
3710
 
3711
3711
  // src/configs/alexPluginBase.ts
3712
- function createAlexPluginBaseConfig(plugin2) {
3712
+ function createAlexPluginBaseConfig(plugin) {
3713
3713
  return [
3714
3714
  {
3715
3715
  plugins: {
3716
- "@alextheman": plugin2
3716
+ "@alextheman": plugin
3717
3717
  },
3718
3718
  rules: {
3719
3719
  "@alextheman/no-namespace-imports": "error",
@@ -3852,8 +3852,8 @@ var typeScriptBase = [
3852
3852
  var typeScriptBase_default = typeScriptBase;
3853
3853
 
3854
3854
  // src/configs/alexTypeScriptBase.ts
3855
- function createAlexTypeScriptBaseConfig(plugin2) {
3856
- return [...alexPluginBase_default(plugin2), ...typeScriptBase_default];
3855
+ function createAlexTypeScriptBaseConfig(plugin) {
3856
+ return [...alexPluginBase_default(plugin), ...typeScriptBase_default];
3857
3857
  }
3858
3858
  var alexTypeScriptBase_default = createAlexTypeScriptBaseConfig;
3859
3859
 
@@ -3895,8 +3895,8 @@ var typeScriptReactBase = [
3895
3895
  var typeScriptReactBase_default = typeScriptReactBase;
3896
3896
 
3897
3897
  // src/configs/alexTypeScriptReactBase.ts
3898
- function createAlexTypeScriptReactBaseConfig(plugin2) {
3899
- return [...alexTypeScriptBase_default(plugin2), ...typeScriptReactBase_default];
3898
+ function createAlexTypeScriptReactBaseConfig(plugin) {
3899
+ return [...alexTypeScriptBase_default(plugin), ...typeScriptReactBase_default];
3900
3900
  }
3901
3901
  var alexTypeScriptReactBase_default = createAlexTypeScriptReactBaseConfig;
3902
3902
 
@@ -3904,12 +3904,12 @@ var alexTypeScriptReactBase_default = createAlexTypeScriptReactBaseConfig;
3904
3904
  var import_utils2 = require("@typescript-eslint/utils");
3905
3905
  var import_zod = __toESM(require("zod"), 1);
3906
3906
 
3907
- // src/create-rule.ts
3907
+ // src/createRule.ts
3908
3908
  var import_utils = require("@typescript-eslint/utils");
3909
3909
  var createRule = import_utils.ESLintUtils.RuleCreator((ruleName) => {
3910
3910
  return `https://github.com/AlexMan123456/eslint-plugin/${ruleName}`;
3911
3911
  });
3912
- var create_rule_default = createRule;
3912
+ var createRule_default = createRule;
3913
3913
 
3914
3914
  // src/utility/getImportSpecifiersAfterRemoving.ts
3915
3915
  function getImportSpecifiersAfterRemoving(context, specifiers, importToRemove) {
@@ -3923,7 +3923,7 @@ var getImportSpecifiersAfterRemoving_default = getImportSpecifiersAfterRemoving;
3923
3923
 
3924
3924
  // src/rules/consistent-test-function.ts
3925
3925
  var validTestFunctionsSchema = import_zod.default.enum(["test", "it"]);
3926
- var consistentTestFunction = create_rule_default({
3926
+ var consistentTestFunction = createRule_default({
3927
3927
  name: "consistent-test-function",
3928
3928
  meta: {
3929
3929
  docs: {
@@ -4063,7 +4063,7 @@ function checkCallExpression(node, objectName, propertyName) {
4063
4063
  var checkCallExpression_default = checkCallExpression;
4064
4064
 
4065
4065
  // src/rules/no-isolated-tests.ts
4066
- var noIsolatedTests = create_rule_default({
4066
+ var noIsolatedTests = createRule_default({
4067
4067
  name: "no-isolated-tests",
4068
4068
  meta: {
4069
4069
  docs: {
@@ -4095,7 +4095,7 @@ var noIsolatedTests = create_rule_default({
4095
4095
  var no_isolated_tests_default = noIsolatedTests;
4096
4096
 
4097
4097
  // src/rules/no-namespace-imports.ts
4098
- var noNamespaceImports = create_rule_default({
4098
+ var noNamespaceImports = createRule_default({
4099
4099
  name: "no-namespace-imports",
4100
4100
  meta: {
4101
4101
  docs: {
@@ -4147,7 +4147,7 @@ var noNamespaceImports = create_rule_default({
4147
4147
  var no_namespace_imports_default = noNamespaceImports;
4148
4148
 
4149
4149
  // src/rules/no-plugin-configs-access-from-src-configs.ts
4150
- var noPluginConfigAccessFromSrcConfigs = create_rule_default({
4150
+ var noPluginConfigAccessFromSrcConfigs = createRule_default({
4151
4151
  name: "no-plugin-configs-access-from-src-configs",
4152
4152
  meta: {
4153
4153
  docs: {
@@ -4183,7 +4183,7 @@ var noPluginConfigAccessFromSrcConfigs = create_rule_default({
4183
4183
  var no_plugin_configs_access_from_src_configs_default = noPluginConfigAccessFromSrcConfigs;
4184
4184
 
4185
4185
  // src/rules/no-relative-imports.ts
4186
- var noRelativeImports = create_rule_default({
4186
+ var noRelativeImports = createRule_default({
4187
4187
  name: "no-relative-imports",
4188
4188
  meta: {
4189
4189
  docs: { description: "Forbid the use of relative imports" },
@@ -4274,7 +4274,7 @@ var noRelativeImports = create_rule_default({
4274
4274
  var no_relative_imports_default = noRelativeImports;
4275
4275
 
4276
4276
  // src/rules/no-skipped-tests.ts
4277
- var noSkippedTests = create_rule_default({
4277
+ var noSkippedTests = createRule_default({
4278
4278
  name: "no-skipped-tests",
4279
4279
  meta: {
4280
4280
  docs: {
@@ -4307,7 +4307,7 @@ var no_skipped_tests_default = noSkippedTests;
4307
4307
 
4308
4308
  // src/rules/use-object-shorthand.ts
4309
4309
  var import_utils4 = require("@typescript-eslint/utils");
4310
- var useObjectShorthand = create_rule_default({
4310
+ var useObjectShorthand = createRule_default({
4311
4311
  name: "use-object-shorthand",
4312
4312
  meta: {
4313
4313
  docs: {
@@ -4354,13 +4354,8 @@ var rules_default = {
4354
4354
  "use-object-shorthand": use_object_shorthand_default
4355
4355
  };
4356
4356
 
4357
- // src/index.ts
4358
- if (process.env.ESLINT_MODE) {
4359
- console.warn(
4360
- "ESLINT_MODE is now deprecated. Please use eslint --fix --suppress-all when running the fixer instead."
4361
- );
4362
- }
4363
- var plugin = {
4357
+ // src/alexPlugin.ts
4358
+ var alexPlugin = {
4364
4359
  meta: {
4365
4360
  name,
4366
4361
  version,
@@ -4375,14 +4370,17 @@ var plugin = {
4375
4370
  },
4376
4371
  rules: rules_default
4377
4372
  };
4378
- plugin.configs = {
4379
- alexPluginBase: alexPluginBase_default(plugin),
4380
- alexTypeScriptBase: alexTypeScriptBase_default(plugin),
4381
- alexTypeScriptReactBase: alexTypeScriptReactBase_default(plugin),
4373
+ alexPlugin.configs = {
4374
+ alexPluginBase: alexPluginBase_default(alexPlugin),
4375
+ alexTypeScriptBase: alexTypeScriptBase_default(alexPlugin),
4376
+ alexTypeScriptReactBase: alexTypeScriptReactBase_default(alexPlugin),
4382
4377
  typeScriptBase: typeScriptBase_default,
4383
4378
  typeScriptReactBase: typeScriptReactBase_default
4384
4379
  };
4385
- var index_default = plugin;
4380
+ var alexPlugin_default = alexPlugin;
4381
+
4382
+ // src/index.ts
4383
+ var index_default = alexPlugin_default;
4386
4384
  // Annotate the CommonJS export names for ESM import in node:
4387
4385
  0 && (module.exports = {
4388
4386
  prettierRules
package/dist/index.d.cts CHANGED
@@ -1,17 +1,9 @@
1
1
  import { Linter } from 'eslint';
2
- import { Config } from 'prettier';
3
2
  import z from 'zod';
3
+ import { Config } from 'prettier';
4
4
 
5
5
  var name = "@alextheman/eslint-plugin";
6
- var version = "1.12.1";
7
-
8
- declare const prettierRules: Config;
9
-
10
- declare const validTestFunctionsSchema: z.ZodEnum<{
11
- test: "test";
12
- it: "it";
13
- }>;
14
- type ValidTestFunctions = z.infer<typeof validTestFunctionsSchema>;
6
+ var version = "1.12.2";
15
7
 
16
8
  interface AlexPlugin {
17
9
  meta: {
@@ -28,7 +20,14 @@ interface AlexPlugin {
28
20
  };
29
21
  rules: Record<string, any>;
30
22
  }
23
+ declare const alexPlugin: AlexPlugin;
24
+
25
+ declare const prettierRules: Config;
31
26
 
32
- declare const plugin: AlexPlugin;
27
+ declare const validTestFunctionsSchema: z.ZodEnum<{
28
+ test: "test";
29
+ it: "it";
30
+ }>;
31
+ type ValidTestFunctions = z.infer<typeof validTestFunctionsSchema>;
33
32
 
34
- export { type AlexPlugin, type ValidTestFunctions, plugin as default, prettierRules };
33
+ export { type AlexPlugin, type ValidTestFunctions, alexPlugin as default, prettierRules };
package/dist/index.d.ts CHANGED
@@ -1,17 +1,9 @@
1
1
  import { Linter } from 'eslint';
2
- import { Config } from 'prettier';
3
2
  import z from 'zod';
3
+ import { Config } from 'prettier';
4
4
 
5
5
  var name = "@alextheman/eslint-plugin";
6
- var version = "1.12.1";
7
-
8
- declare const prettierRules: Config;
9
-
10
- declare const validTestFunctionsSchema: z.ZodEnum<{
11
- test: "test";
12
- it: "it";
13
- }>;
14
- type ValidTestFunctions = z.infer<typeof validTestFunctionsSchema>;
6
+ var version = "1.12.2";
15
7
 
16
8
  interface AlexPlugin {
17
9
  meta: {
@@ -28,7 +20,14 @@ interface AlexPlugin {
28
20
  };
29
21
  rules: Record<string, any>;
30
22
  }
23
+ declare const alexPlugin: AlexPlugin;
24
+
25
+ declare const prettierRules: Config;
31
26
 
32
- declare const plugin: AlexPlugin;
27
+ declare const validTestFunctionsSchema: z.ZodEnum<{
28
+ test: "test";
29
+ it: "it";
30
+ }>;
31
+ type ValidTestFunctions = z.infer<typeof validTestFunctionsSchema>;
33
32
 
34
- export { type AlexPlugin, type ValidTestFunctions, plugin as default, prettierRules };
33
+ export { type AlexPlugin, type ValidTestFunctions, alexPlugin as default, prettierRules };
package/dist/index.js CHANGED
@@ -3692,14 +3692,14 @@ var require_globals2 = __commonJS({
3692
3692
 
3693
3693
  // package.json
3694
3694
  var name = "@alextheman/eslint-plugin";
3695
- var version = "1.12.1";
3695
+ var version = "1.12.2";
3696
3696
 
3697
3697
  // src/configs/alexPluginBase.ts
3698
- function createAlexPluginBaseConfig(plugin2) {
3698
+ function createAlexPluginBaseConfig(plugin) {
3699
3699
  return [
3700
3700
  {
3701
3701
  plugins: {
3702
- "@alextheman": plugin2
3702
+ "@alextheman": plugin
3703
3703
  },
3704
3704
  rules: {
3705
3705
  "@alextheman/no-namespace-imports": "error",
@@ -3838,8 +3838,8 @@ var typeScriptBase = [
3838
3838
  var typeScriptBase_default = typeScriptBase;
3839
3839
 
3840
3840
  // src/configs/alexTypeScriptBase.ts
3841
- function createAlexTypeScriptBaseConfig(plugin2) {
3842
- return [...alexPluginBase_default(plugin2), ...typeScriptBase_default];
3841
+ function createAlexTypeScriptBaseConfig(plugin) {
3842
+ return [...alexPluginBase_default(plugin), ...typeScriptBase_default];
3843
3843
  }
3844
3844
  var alexTypeScriptBase_default = createAlexTypeScriptBaseConfig;
3845
3845
 
@@ -3881,8 +3881,8 @@ var typeScriptReactBase = [
3881
3881
  var typeScriptReactBase_default = typeScriptReactBase;
3882
3882
 
3883
3883
  // src/configs/alexTypeScriptReactBase.ts
3884
- function createAlexTypeScriptReactBaseConfig(plugin2) {
3885
- return [...alexTypeScriptBase_default(plugin2), ...typeScriptReactBase_default];
3884
+ function createAlexTypeScriptReactBaseConfig(plugin) {
3885
+ return [...alexTypeScriptBase_default(plugin), ...typeScriptReactBase_default];
3886
3886
  }
3887
3887
  var alexTypeScriptReactBase_default = createAlexTypeScriptReactBaseConfig;
3888
3888
 
@@ -3890,12 +3890,12 @@ var alexTypeScriptReactBase_default = createAlexTypeScriptReactBaseConfig;
3890
3890
  import { AST_NODE_TYPES } from "@typescript-eslint/utils";
3891
3891
  import z from "zod";
3892
3892
 
3893
- // src/create-rule.ts
3893
+ // src/createRule.ts
3894
3894
  import { ESLintUtils } from "@typescript-eslint/utils";
3895
3895
  var createRule = ESLintUtils.RuleCreator((ruleName) => {
3896
3896
  return `https://github.com/AlexMan123456/eslint-plugin/${ruleName}`;
3897
3897
  });
3898
- var create_rule_default = createRule;
3898
+ var createRule_default = createRule;
3899
3899
 
3900
3900
  // src/utility/getImportSpecifiersAfterRemoving.ts
3901
3901
  function getImportSpecifiersAfterRemoving(context, specifiers, importToRemove) {
@@ -3909,7 +3909,7 @@ var getImportSpecifiersAfterRemoving_default = getImportSpecifiersAfterRemoving;
3909
3909
 
3910
3910
  // src/rules/consistent-test-function.ts
3911
3911
  var validTestFunctionsSchema = z.enum(["test", "it"]);
3912
- var consistentTestFunction = create_rule_default({
3912
+ var consistentTestFunction = createRule_default({
3913
3913
  name: "consistent-test-function",
3914
3914
  meta: {
3915
3915
  docs: {
@@ -4049,7 +4049,7 @@ function checkCallExpression(node, objectName, propertyName) {
4049
4049
  var checkCallExpression_default = checkCallExpression;
4050
4050
 
4051
4051
  // src/rules/no-isolated-tests.ts
4052
- var noIsolatedTests = create_rule_default({
4052
+ var noIsolatedTests = createRule_default({
4053
4053
  name: "no-isolated-tests",
4054
4054
  meta: {
4055
4055
  docs: {
@@ -4081,7 +4081,7 @@ var noIsolatedTests = create_rule_default({
4081
4081
  var no_isolated_tests_default = noIsolatedTests;
4082
4082
 
4083
4083
  // src/rules/no-namespace-imports.ts
4084
- var noNamespaceImports = create_rule_default({
4084
+ var noNamespaceImports = createRule_default({
4085
4085
  name: "no-namespace-imports",
4086
4086
  meta: {
4087
4087
  docs: {
@@ -4133,7 +4133,7 @@ var noNamespaceImports = create_rule_default({
4133
4133
  var no_namespace_imports_default = noNamespaceImports;
4134
4134
 
4135
4135
  // src/rules/no-plugin-configs-access-from-src-configs.ts
4136
- var noPluginConfigAccessFromSrcConfigs = create_rule_default({
4136
+ var noPluginConfigAccessFromSrcConfigs = createRule_default({
4137
4137
  name: "no-plugin-configs-access-from-src-configs",
4138
4138
  meta: {
4139
4139
  docs: {
@@ -4169,7 +4169,7 @@ var noPluginConfigAccessFromSrcConfigs = create_rule_default({
4169
4169
  var no_plugin_configs_access_from_src_configs_default = noPluginConfigAccessFromSrcConfigs;
4170
4170
 
4171
4171
  // src/rules/no-relative-imports.ts
4172
- var noRelativeImports = create_rule_default({
4172
+ var noRelativeImports = createRule_default({
4173
4173
  name: "no-relative-imports",
4174
4174
  meta: {
4175
4175
  docs: { description: "Forbid the use of relative imports" },
@@ -4260,7 +4260,7 @@ var noRelativeImports = create_rule_default({
4260
4260
  var no_relative_imports_default = noRelativeImports;
4261
4261
 
4262
4262
  // src/rules/no-skipped-tests.ts
4263
- var noSkippedTests = create_rule_default({
4263
+ var noSkippedTests = createRule_default({
4264
4264
  name: "no-skipped-tests",
4265
4265
  meta: {
4266
4266
  docs: {
@@ -4293,7 +4293,7 @@ var no_skipped_tests_default = noSkippedTests;
4293
4293
 
4294
4294
  // src/rules/use-object-shorthand.ts
4295
4295
  import { AST_NODE_TYPES as AST_NODE_TYPES3 } from "@typescript-eslint/utils";
4296
- var useObjectShorthand = create_rule_default({
4296
+ var useObjectShorthand = createRule_default({
4297
4297
  name: "use-object-shorthand",
4298
4298
  meta: {
4299
4299
  docs: {
@@ -4340,13 +4340,8 @@ var rules_default = {
4340
4340
  "use-object-shorthand": use_object_shorthand_default
4341
4341
  };
4342
4342
 
4343
- // src/index.ts
4344
- if (process.env.ESLINT_MODE) {
4345
- console.warn(
4346
- "ESLINT_MODE is now deprecated. Please use eslint --fix --suppress-all when running the fixer instead."
4347
- );
4348
- }
4349
- var plugin = {
4343
+ // src/alexPlugin.ts
4344
+ var alexPlugin = {
4350
4345
  meta: {
4351
4346
  name,
4352
4347
  version,
@@ -4361,14 +4356,17 @@ var plugin = {
4361
4356
  },
4362
4357
  rules: rules_default
4363
4358
  };
4364
- plugin.configs = {
4365
- alexPluginBase: alexPluginBase_default(plugin),
4366
- alexTypeScriptBase: alexTypeScriptBase_default(plugin),
4367
- alexTypeScriptReactBase: alexTypeScriptReactBase_default(plugin),
4359
+ alexPlugin.configs = {
4360
+ alexPluginBase: alexPluginBase_default(alexPlugin),
4361
+ alexTypeScriptBase: alexTypeScriptBase_default(alexPlugin),
4362
+ alexTypeScriptReactBase: alexTypeScriptReactBase_default(alexPlugin),
4368
4363
  typeScriptBase: typeScriptBase_default,
4369
4364
  typeScriptReactBase: typeScriptReactBase_default
4370
4365
  };
4371
- var index_default = plugin;
4366
+ var alexPlugin_default = alexPlugin;
4367
+
4368
+ // src/index.ts
4369
+ var index_default = alexPlugin_default;
4372
4370
  export {
4373
4371
  index_default as default,
4374
4372
  prettierRules_default as prettierRules
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/eslint-plugin",
3
- "version": "1.12.1",
3
+ "version": "1.12.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",