@alextheman/eslint-plugin 2.7.3 → 2.7.5

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
@@ -3758,7 +3758,7 @@ module.exports = __toCommonJS(index_exports);
3758
3758
 
3759
3759
  // package.json
3760
3760
  var name = "@alextheman/eslint-plugin";
3761
- var version = "2.7.3";
3761
+ var version = "2.7.5";
3762
3762
 
3763
3763
  // src/configs/index.ts
3764
3764
  var import_eslint_plugin_package_json = __toESM(require("eslint-plugin-package-json"), 1);
@@ -4131,7 +4131,6 @@ var typeScriptBase_default = typeScriptBase;
4131
4131
  // src/configs/personal/eslintPlugin.ts
4132
4132
  var import_eslint_plugin_perfectionist2 = __toESM(require("eslint-plugin-perfectionist"), 1);
4133
4133
  function createPersonalEslintPluginConfig(plugin) {
4134
- const noPluginImportMessage = "Do not import the plugin directly from the config files. Please create a function that takes in the plugin and returns the config instead.";
4135
4134
  return [
4136
4135
  {
4137
4136
  plugins: {
@@ -4148,23 +4147,13 @@ function createPersonalEslintPluginConfig(plugin) {
4148
4147
  "no-restricted-imports": [
4149
4148
  "error",
4150
4149
  {
4151
- paths: [
4152
- {
4150
+ paths: ["src/alexPlugin", "src/index", "src"].map((name2) => {
4151
+ return {
4153
4152
  importNames: ["default"],
4154
- message: noPluginImportMessage,
4155
- name: "src/alexPlugin"
4156
- },
4157
- {
4158
- importNames: ["default"],
4159
- message: noPluginImportMessage,
4160
- name: "src/index"
4161
- },
4162
- {
4163
- importNames: ["default"],
4164
- message: noPluginImportMessage,
4165
- name: "src"
4166
- }
4167
- ]
4153
+ message: "Do not import the plugin directly from the config files. Please create a function that takes in the plugin and returns the config instead.",
4154
+ name: name2
4155
+ };
4156
+ })
4168
4157
  }
4169
4158
  ]
4170
4159
  }
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.3";
7
+ var version = "2.7.5";
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
 
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.3";
7
+ var version = "2.7.5";
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
 
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.3";
3746
+ var version = "2.7.5";
3747
3747
 
3748
3748
  // src/configs/index.ts
3749
3749
  import packageJson from "eslint-plugin-package-json";
@@ -4116,7 +4116,6 @@ var typeScriptBase_default = typeScriptBase;
4116
4116
  // src/configs/personal/eslintPlugin.ts
4117
4117
  import perfectionist2 from "eslint-plugin-perfectionist";
4118
4118
  function createPersonalEslintPluginConfig(plugin) {
4119
- const noPluginImportMessage = "Do not import the plugin directly from the config files. Please create a function that takes in the plugin and returns the config instead.";
4120
4119
  return [
4121
4120
  {
4122
4121
  plugins: {
@@ -4133,23 +4132,13 @@ function createPersonalEslintPluginConfig(plugin) {
4133
4132
  "no-restricted-imports": [
4134
4133
  "error",
4135
4134
  {
4136
- paths: [
4137
- {
4135
+ paths: ["src/alexPlugin", "src/index", "src"].map((name2) => {
4136
+ return {
4138
4137
  importNames: ["default"],
4139
- message: noPluginImportMessage,
4140
- name: "src/alexPlugin"
4141
- },
4142
- {
4143
- importNames: ["default"],
4144
- message: noPluginImportMessage,
4145
- name: "src/index"
4146
- },
4147
- {
4148
- importNames: ["default"],
4149
- message: noPluginImportMessage,
4150
- name: "src"
4151
- }
4152
- ]
4138
+ message: "Do not import the plugin directly from the config files. Please create a function that takes in the plugin and returns the config instead.",
4139
+ name: name2
4140
+ };
4141
+ })
4153
4142
  }
4154
4143
  ]
4155
4144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/eslint-plugin",
3
- "version": "2.7.3",
3
+ "version": "2.7.5",
4
4
  "description": "A package to provide custom ESLint rules and configs",
5
5
  "license": "ISC",
6
6
  "author": "alextheman",