@alextheman/eslint-plugin 1.2.0 → 1.2.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
@@ -3705,7 +3705,7 @@ module.exports = __toCommonJS(index_exports);
3705
3705
 
3706
3706
  // package.json
3707
3707
  var name = "@alextheman/eslint-plugin";
3708
- var version = "1.2.0";
3708
+ var version = "1.2.1";
3709
3709
 
3710
3710
  // src/create-rule.ts
3711
3711
  var import_utils = require("@typescript-eslint/utils");
@@ -3922,7 +3922,7 @@ var plugin = {
3922
3922
  version,
3923
3923
  namespace: "alextheman"
3924
3924
  },
3925
- configs: { alexTypeScriptBase: [] },
3925
+ configs: { alexTypeScriptBase: [], alexTypeScriptReactBase: [] },
3926
3926
  rules: rules_default
3927
3927
  };
3928
3928
  Object.assign(plugin.configs, {
@@ -3939,28 +3939,26 @@ Object.assign(plugin.configs, {
3939
3939
  }
3940
3940
  ]
3941
3941
  });
3942
- Object.assign(plugin.configs, {
3943
- alexTypescriptReactBase: [
3944
- ...plugin.configs.alexTypeScriptBase,
3945
- {
3946
- name: "@alextheman/eslint-config-typescript-react-base",
3947
- languageOptions: {
3948
- ecmaVersion: 2020,
3949
- globals: import_globals2.default.browser
3950
- },
3951
- plugins: {
3952
- "react-hooks": import_eslint_plugin_react_hooks.default,
3953
- "react-refresh": import_eslint_plugin_react_refresh.default,
3954
- react: import_eslint_plugin_react.default
3955
- },
3956
- rules: __spreadProps(__spreadValues({}, import_eslint_plugin_react_hooks.default.configs.recommended.rules), {
3957
- "react-refresh/only-export-components": [
3958
- "warn",
3959
- { allowConstantExport: true }
3960
- ],
3961
- "react-hooks/exhaustive-deps": "off"
3962
- })
3963
- }
3964
- ]
3965
- });
3942
+ plugin.configs.alexTypeScriptReactBase = [
3943
+ ...plugin.configs.alexTypeScriptBase,
3944
+ {
3945
+ name: "@alextheman/eslint-config-typescript-react-base",
3946
+ languageOptions: {
3947
+ ecmaVersion: 2020,
3948
+ globals: import_globals2.default.browser
3949
+ },
3950
+ plugins: {
3951
+ "react-hooks": import_eslint_plugin_react_hooks.default,
3952
+ "react-refresh": import_eslint_plugin_react_refresh.default,
3953
+ react: import_eslint_plugin_react.default
3954
+ },
3955
+ rules: __spreadProps(__spreadValues({}, import_eslint_plugin_react_hooks.default.configs.recommended.rules), {
3956
+ "react-refresh/only-export-components": [
3957
+ "warn",
3958
+ { allowConstantExport: true }
3959
+ ],
3960
+ "react-hooks/exhaustive-deps": "off"
3961
+ })
3962
+ }
3963
+ ];
3966
3964
  var index_default = plugin;
package/dist/index.d.cts CHANGED
@@ -1,13 +1,26 @@
1
1
  import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
2
2
 
3
+ var name = "@alextheman/eslint-plugin";
4
+ var version = "1.2.1";
5
+
6
+ interface AlexPlugin {
7
+ meta: {
8
+ name: typeof name;
9
+ version: typeof version;
10
+ namespace: "alextheman";
11
+ };
12
+ configs: Record<string, any>;
13
+ rules: Record<string, any>;
14
+ }
3
15
  declare const plugin: {
4
16
  meta: {
5
17
  name: string;
6
18
  version: string;
7
- namespace: string;
19
+ namespace: "alextheman";
8
20
  };
9
21
  configs: {
10
22
  alexTypeScriptBase: never[];
23
+ alexTypeScriptReactBase: never[];
11
24
  };
12
25
  rules: {
13
26
  "no-namespace-imports": _typescript_eslint_utils_ts_eslint.RuleModule<"message", [{
@@ -17,4 +30,4 @@ declare const plugin: {
17
30
  };
18
31
  };
19
32
 
20
- export { plugin as default };
33
+ export { type AlexPlugin, plugin as default };
package/dist/index.d.ts CHANGED
@@ -1,13 +1,26 @@
1
1
  import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
2
2
 
3
+ var name = "@alextheman/eslint-plugin";
4
+ var version = "1.2.1";
5
+
6
+ interface AlexPlugin {
7
+ meta: {
8
+ name: typeof name;
9
+ version: typeof version;
10
+ namespace: "alextheman";
11
+ };
12
+ configs: Record<string, any>;
13
+ rules: Record<string, any>;
14
+ }
3
15
  declare const plugin: {
4
16
  meta: {
5
17
  name: string;
6
18
  version: string;
7
- namespace: string;
19
+ namespace: "alextheman";
8
20
  };
9
21
  configs: {
10
22
  alexTypeScriptBase: never[];
23
+ alexTypeScriptReactBase: never[];
11
24
  };
12
25
  rules: {
13
26
  "no-namespace-imports": _typescript_eslint_utils_ts_eslint.RuleModule<"message", [{
@@ -17,4 +30,4 @@ declare const plugin: {
17
30
  };
18
31
  };
19
32
 
20
- export { plugin as default };
33
+ export { type AlexPlugin, plugin as default };
package/dist/index.js CHANGED
@@ -3692,7 +3692,7 @@ var require_globals2 = __commonJS({
3692
3692
 
3693
3693
  // package.json
3694
3694
  var name = "@alextheman/eslint-plugin";
3695
- var version = "1.2.0";
3695
+ var version = "1.2.1";
3696
3696
 
3697
3697
  // src/create-rule.ts
3698
3698
  import { ESLintUtils } from "@typescript-eslint/utils";
@@ -3909,7 +3909,7 @@ var plugin = {
3909
3909
  version,
3910
3910
  namespace: "alextheman"
3911
3911
  },
3912
- configs: { alexTypeScriptBase: [] },
3912
+ configs: { alexTypeScriptBase: [], alexTypeScriptReactBase: [] },
3913
3913
  rules: rules_default
3914
3914
  };
3915
3915
  Object.assign(plugin.configs, {
@@ -3926,30 +3926,28 @@ Object.assign(plugin.configs, {
3926
3926
  }
3927
3927
  ]
3928
3928
  });
3929
- Object.assign(plugin.configs, {
3930
- alexTypescriptReactBase: [
3931
- ...plugin.configs.alexTypeScriptBase,
3932
- {
3933
- name: "@alextheman/eslint-config-typescript-react-base",
3934
- languageOptions: {
3935
- ecmaVersion: 2020,
3936
- globals: import_globals2.default.browser
3937
- },
3938
- plugins: {
3939
- "react-hooks": reactHooks,
3940
- "react-refresh": reactRefresh,
3941
- react: reactPlugin
3942
- },
3943
- rules: __spreadProps(__spreadValues({}, reactHooks.configs.recommended.rules), {
3944
- "react-refresh/only-export-components": [
3945
- "warn",
3946
- { allowConstantExport: true }
3947
- ],
3948
- "react-hooks/exhaustive-deps": "off"
3949
- })
3950
- }
3951
- ]
3952
- });
3929
+ plugin.configs.alexTypeScriptReactBase = [
3930
+ ...plugin.configs.alexTypeScriptBase,
3931
+ {
3932
+ name: "@alextheman/eslint-config-typescript-react-base",
3933
+ languageOptions: {
3934
+ ecmaVersion: 2020,
3935
+ globals: import_globals2.default.browser
3936
+ },
3937
+ plugins: {
3938
+ "react-hooks": reactHooks,
3939
+ "react-refresh": reactRefresh,
3940
+ react: reactPlugin
3941
+ },
3942
+ rules: __spreadProps(__spreadValues({}, reactHooks.configs.recommended.rules), {
3943
+ "react-refresh/only-export-components": [
3944
+ "warn",
3945
+ { allowConstantExport: true }
3946
+ ],
3947
+ "react-hooks/exhaustive-deps": "off"
3948
+ })
3949
+ }
3950
+ ];
3953
3951
  var index_default = plugin;
3954
3952
  export {
3955
3953
  index_default as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/eslint-plugin",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",