@alextheman/eslint-plugin 3.0.1 → 3.0.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 +7 -7
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -7
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -3765,7 +3765,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
3765
3765
|
|
|
3766
3766
|
// package.json
|
|
3767
3767
|
var name = "@alextheman/eslint-plugin";
|
|
3768
|
-
var version = "3.0.
|
|
3768
|
+
var version = "3.0.2";
|
|
3769
3769
|
|
|
3770
3770
|
// src/configs/index.ts
|
|
3771
3771
|
var import_eslint_plugin_package_json = __toESM(require("eslint-plugin-package-json"), 1);
|
|
@@ -4017,7 +4017,7 @@ var import_eslint_plugin_jsx_a11y = __toESM(require("eslint-plugin-jsx-a11y"), 1
|
|
|
4017
4017
|
var import_eslint_plugin_react = __toESM(require("eslint-plugin-react"), 1);
|
|
4018
4018
|
var import_eslint_plugin_react_refresh = __toESM(require("eslint-plugin-react-refresh"), 1);
|
|
4019
4019
|
|
|
4020
|
-
// src/configs/helpers/
|
|
4020
|
+
// src/configs/helpers/eslint-plugin-react-hooks.ts
|
|
4021
4021
|
var import_utility = require("@alextheman/utility");
|
|
4022
4022
|
var import_eslint_plugin_react_hooks = __toESM(require("eslint-plugin-react-hooks"), 1);
|
|
4023
4023
|
var reactHooks = __spreadProps(__spreadValues({}, import_eslint_plugin_react_hooks.default), {
|
|
@@ -4026,7 +4026,7 @@ var reactHooks = __spreadProps(__spreadValues({}, import_eslint_plugin_react_hoo
|
|
|
4026
4026
|
"flat/recommended-latest": import_eslint_plugin_react_hooks.default.configs.flat["recommended-latest"]
|
|
4027
4027
|
})
|
|
4028
4028
|
});
|
|
4029
|
-
var
|
|
4029
|
+
var eslint_plugin_react_hooks_default = reactHooks;
|
|
4030
4030
|
|
|
4031
4031
|
// src/configs/helpers/reactLanguageOptions.ts
|
|
4032
4032
|
var import_globals3 = __toESM(require_globals2(), 1);
|
|
@@ -4051,10 +4051,10 @@ var reactBase = [
|
|
|
4051
4051
|
name: "@alextheman/general/react",
|
|
4052
4052
|
plugins: {
|
|
4053
4053
|
react: import_eslint_plugin_react.default,
|
|
4054
|
-
"react-hooks":
|
|
4054
|
+
"react-hooks": eslint_plugin_react_hooks_default,
|
|
4055
4055
|
"react-refresh": import_eslint_plugin_react_refresh.default
|
|
4056
4056
|
},
|
|
4057
|
-
rules: __spreadProps(__spreadValues({},
|
|
4057
|
+
rules: __spreadProps(__spreadValues({}, eslint_plugin_react_hooks_default.configs["flat/recommended"].rules), {
|
|
4058
4058
|
"react/destructuring-assignment": ["error", "always", { destructureInSignature: "always" }],
|
|
4059
4059
|
"react/hook-use-state": "error",
|
|
4060
4060
|
"react/jsx-curly-brace-presence": [
|
|
@@ -4083,7 +4083,7 @@ var personalReactBaseConfig = [
|
|
|
4083
4083
|
name: "@alextheman/personal/react",
|
|
4084
4084
|
plugins: {
|
|
4085
4085
|
react: import_eslint_plugin_react2.default,
|
|
4086
|
-
"react-hooks":
|
|
4086
|
+
"react-hooks": eslint_plugin_react_hooks_default,
|
|
4087
4087
|
"react-refresh": import_eslint_plugin_react_refresh2.default
|
|
4088
4088
|
},
|
|
4089
4089
|
rules: {
|
|
@@ -4221,7 +4221,7 @@ function createPersonalEslintPluginConfig(plugin) {
|
|
|
4221
4221
|
}),
|
|
4222
4222
|
{
|
|
4223
4223
|
importNames: ["default"],
|
|
4224
|
-
message:
|
|
4224
|
+
message: `Please import from "src/configs/helpers/eslint-plugin-react-hooks" instead so you don't have to deal with eslint-plugin-react-hooks' ridiculous plugin typing.`,
|
|
4225
4225
|
name: "eslint-plugin-react-hooks"
|
|
4226
4226
|
}
|
|
4227
4227
|
]
|
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 = "3.0.
|
|
7
|
+
var version = "3.0.2";
|
|
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 = "3.0.
|
|
7
|
+
var version = "3.0.2";
|
|
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
|
@@ -3744,7 +3744,7 @@ var require_src = __commonJS({
|
|
|
3744
3744
|
|
|
3745
3745
|
// package.json
|
|
3746
3746
|
var name = "@alextheman/eslint-plugin";
|
|
3747
|
-
var version = "3.0.
|
|
3747
|
+
var version = "3.0.2";
|
|
3748
3748
|
|
|
3749
3749
|
// src/configs/index.ts
|
|
3750
3750
|
import packageJson from "eslint-plugin-package-json";
|
|
@@ -3996,7 +3996,7 @@ import jsxA11y from "eslint-plugin-jsx-a11y";
|
|
|
3996
3996
|
import reactPlugin from "eslint-plugin-react";
|
|
3997
3997
|
import reactRefresh from "eslint-plugin-react-refresh";
|
|
3998
3998
|
|
|
3999
|
-
// src/configs/helpers/
|
|
3999
|
+
// src/configs/helpers/eslint-plugin-react-hooks.ts
|
|
4000
4000
|
import { omitProperties } from "@alextheman/utility";
|
|
4001
4001
|
import reactHooksPlugin from "eslint-plugin-react-hooks";
|
|
4002
4002
|
var reactHooks = __spreadProps(__spreadValues({}, reactHooksPlugin), {
|
|
@@ -4005,7 +4005,7 @@ var reactHooks = __spreadProps(__spreadValues({}, reactHooksPlugin), {
|
|
|
4005
4005
|
"flat/recommended-latest": reactHooksPlugin.configs.flat["recommended-latest"]
|
|
4006
4006
|
})
|
|
4007
4007
|
});
|
|
4008
|
-
var
|
|
4008
|
+
var eslint_plugin_react_hooks_default = reactHooks;
|
|
4009
4009
|
|
|
4010
4010
|
// src/configs/helpers/reactLanguageOptions.ts
|
|
4011
4011
|
var import_globals3 = __toESM(require_globals2(), 1);
|
|
@@ -4030,10 +4030,10 @@ var reactBase = [
|
|
|
4030
4030
|
name: "@alextheman/general/react",
|
|
4031
4031
|
plugins: {
|
|
4032
4032
|
react: reactPlugin,
|
|
4033
|
-
"react-hooks":
|
|
4033
|
+
"react-hooks": eslint_plugin_react_hooks_default,
|
|
4034
4034
|
"react-refresh": reactRefresh
|
|
4035
4035
|
},
|
|
4036
|
-
rules: __spreadProps(__spreadValues({},
|
|
4036
|
+
rules: __spreadProps(__spreadValues({}, eslint_plugin_react_hooks_default.configs["flat/recommended"].rules), {
|
|
4037
4037
|
"react/destructuring-assignment": ["error", "always", { destructureInSignature: "always" }],
|
|
4038
4038
|
"react/hook-use-state": "error",
|
|
4039
4039
|
"react/jsx-curly-brace-presence": [
|
|
@@ -4062,7 +4062,7 @@ var personalReactBaseConfig = [
|
|
|
4062
4062
|
name: "@alextheman/personal/react",
|
|
4063
4063
|
plugins: {
|
|
4064
4064
|
react: reactPlugin2,
|
|
4065
|
-
"react-hooks":
|
|
4065
|
+
"react-hooks": eslint_plugin_react_hooks_default,
|
|
4066
4066
|
"react-refresh": reactRefresh2
|
|
4067
4067
|
},
|
|
4068
4068
|
rules: {
|
|
@@ -4200,7 +4200,7 @@ function createPersonalEslintPluginConfig(plugin) {
|
|
|
4200
4200
|
}),
|
|
4201
4201
|
{
|
|
4202
4202
|
importNames: ["default"],
|
|
4203
|
-
message:
|
|
4203
|
+
message: `Please import from "src/configs/helpers/eslint-plugin-react-hooks" instead so you don't have to deal with eslint-plugin-react-hooks' ridiculous plugin typing.`,
|
|
4204
4204
|
name: "eslint-plugin-react-hooks"
|
|
4205
4205
|
}
|
|
4206
4206
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alextheman/eslint-plugin",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "A package to provide custom ESLint rules and configs",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"prepare": "husky",
|
|
35
35
|
"test": "vitest run",
|
|
36
36
|
"test-watch": "vitest",
|
|
37
|
-
"update-dependencies": "bash -c 'npx npm-check-updates -u \"$@\" && npm install' --"
|
|
37
|
+
"update-dependencies": "bash -c 'npx npm-check-updates -u \"$@\" && npm install' --",
|
|
38
|
+
"update-peer-dependencies": "bash -c 'npx npm-check-updates --dep peer -u \"$@\" && npm install' --"
|
|
38
39
|
},
|
|
39
40
|
"dependencies": {
|
|
40
41
|
"@alextheman/utility": "^2.15.1",
|
|
@@ -51,7 +52,6 @@
|
|
|
51
52
|
"eslint-plugin-eslint-plugin": "^7.2.0",
|
|
52
53
|
"globals": "^16.5.0",
|
|
53
54
|
"husky": "^9.1.7",
|
|
54
|
-
"jiti": "^2.6.1",
|
|
55
55
|
"prettier": "^3.6.2",
|
|
56
56
|
"tsup": "^8.5.1",
|
|
57
57
|
"tsx": "^4.20.6",
|