@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 +24 -26
- package/dist/index.d.cts +15 -2
- package/dist/index.d.ts +15 -2
- package/dist/index.js +24 -26
- package/package.json +1 -1
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.
|
|
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
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
"
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
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:
|
|
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:
|
|
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.
|
|
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
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
"
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
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
|