@alextheman/eslint-plugin 2.2.1 → 2.2.3
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 +14 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -2
- package/package.json +9 -7
package/dist/index.cjs
CHANGED
|
@@ -3715,7 +3715,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
3715
3715
|
|
|
3716
3716
|
// package.json
|
|
3717
3717
|
var name = "@alextheman/eslint-plugin";
|
|
3718
|
-
var version = "2.2.
|
|
3718
|
+
var version = "2.2.3";
|
|
3719
3719
|
|
|
3720
3720
|
// src/configs/general/javaScriptBase.ts
|
|
3721
3721
|
var import_js = __toESM(require_src(), 1);
|
|
@@ -3893,6 +3893,7 @@ function createCombinedJavaScriptBaseConfig(plugin) {
|
|
|
3893
3893
|
var javaScriptBase_default2 = createCombinedJavaScriptBaseConfig;
|
|
3894
3894
|
|
|
3895
3895
|
// src/configs/general/reactBase.ts
|
|
3896
|
+
var import_eslint_plugin_jsx_a11y = __toESM(require("eslint-plugin-jsx-a11y"), 1);
|
|
3896
3897
|
var import_eslint_plugin_react = __toESM(require("eslint-plugin-react"), 1);
|
|
3897
3898
|
var import_eslint_plugin_react_hooks = __toESM(require("eslint-plugin-react-hooks"), 1);
|
|
3898
3899
|
var import_eslint_plugin_react_refresh = __toESM(require("eslint-plugin-react-refresh"), 1);
|
|
@@ -3900,6 +3901,7 @@ var import_globals2 = __toESM(require_globals2(), 1);
|
|
|
3900
3901
|
var reactBase = [
|
|
3901
3902
|
import_eslint_plugin_react.default.configs.flat.recommended,
|
|
3902
3903
|
import_eslint_plugin_react.default.configs.flat["jsx-runtime"],
|
|
3904
|
+
import_eslint_plugin_jsx_a11y.default.flatConfigs.recommended,
|
|
3903
3905
|
{
|
|
3904
3906
|
languageOptions: {
|
|
3905
3907
|
ecmaVersion: 2020,
|
|
@@ -3929,7 +3931,17 @@ var reactBase = [
|
|
|
3929
3931
|
}
|
|
3930
3932
|
],
|
|
3931
3933
|
"react-hooks/exhaustive-deps": "off",
|
|
3932
|
-
"react-refresh/only-export-components": "off"
|
|
3934
|
+
"react-refresh/only-export-components": "off",
|
|
3935
|
+
"react/destructuring-assignment": ["error", "always", { destructureInSignature: "always" }],
|
|
3936
|
+
"react/hook-use-state": "error",
|
|
3937
|
+
"react/jsx-boolean-value": "error",
|
|
3938
|
+
"react/jsx-curly-brace-presence": [
|
|
3939
|
+
"error",
|
|
3940
|
+
{ children: "never", propElementValues: "always", props: "never" }
|
|
3941
|
+
],
|
|
3942
|
+
"react/jsx-props-no-spread-multi": "error",
|
|
3943
|
+
"react/no-danger": "error",
|
|
3944
|
+
"react/no-unescaped-entities": "off"
|
|
3933
3945
|
}),
|
|
3934
3946
|
settings: {
|
|
3935
3947
|
react: {
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -3700,7 +3700,7 @@ var require_globals2 = __commonJS({
|
|
|
3700
3700
|
|
|
3701
3701
|
// package.json
|
|
3702
3702
|
var name = "@alextheman/eslint-plugin";
|
|
3703
|
-
var version = "2.2.
|
|
3703
|
+
var version = "2.2.3";
|
|
3704
3704
|
|
|
3705
3705
|
// src/configs/general/javaScriptBase.ts
|
|
3706
3706
|
var import_js = __toESM(require_src(), 1);
|
|
@@ -3879,12 +3879,14 @@ var javaScriptBase_default2 = createCombinedJavaScriptBaseConfig;
|
|
|
3879
3879
|
|
|
3880
3880
|
// src/configs/general/reactBase.ts
|
|
3881
3881
|
var import_globals2 = __toESM(require_globals2(), 1);
|
|
3882
|
+
import jsxA11y from "eslint-plugin-jsx-a11y";
|
|
3882
3883
|
import reactPlugin from "eslint-plugin-react";
|
|
3883
3884
|
import reactHooks from "eslint-plugin-react-hooks";
|
|
3884
3885
|
import reactRefresh from "eslint-plugin-react-refresh";
|
|
3885
3886
|
var reactBase = [
|
|
3886
3887
|
reactPlugin.configs.flat.recommended,
|
|
3887
3888
|
reactPlugin.configs.flat["jsx-runtime"],
|
|
3889
|
+
jsxA11y.flatConfigs.recommended,
|
|
3888
3890
|
{
|
|
3889
3891
|
languageOptions: {
|
|
3890
3892
|
ecmaVersion: 2020,
|
|
@@ -3914,7 +3916,17 @@ var reactBase = [
|
|
|
3914
3916
|
}
|
|
3915
3917
|
],
|
|
3916
3918
|
"react-hooks/exhaustive-deps": "off",
|
|
3917
|
-
"react-refresh/only-export-components": "off"
|
|
3919
|
+
"react-refresh/only-export-components": "off",
|
|
3920
|
+
"react/destructuring-assignment": ["error", "always", { destructureInSignature: "always" }],
|
|
3921
|
+
"react/hook-use-state": "error",
|
|
3922
|
+
"react/jsx-boolean-value": "error",
|
|
3923
|
+
"react/jsx-curly-brace-presence": [
|
|
3924
|
+
"error",
|
|
3925
|
+
{ children: "never", propElementValues: "always", props: "never" }
|
|
3926
|
+
],
|
|
3927
|
+
"react/jsx-props-no-spread-multi": "error",
|
|
3928
|
+
"react/no-danger": "error",
|
|
3929
|
+
"react/no-unescaped-entities": "off"
|
|
3918
3930
|
}),
|
|
3919
3931
|
settings: {
|
|
3920
3932
|
react: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alextheman/eslint-plugin",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"description": "A package to provide custom ESLint rules and configs",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "alextheman",
|
|
@@ -35,16 +35,17 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@alextheman/utility": "^2.2.0",
|
|
37
37
|
"common-tags": "^1.8.2",
|
|
38
|
-
"eslint-plugin-package-json": "^0.
|
|
38
|
+
"eslint-plugin-package-json": "^0.58.0",
|
|
39
39
|
"zod": "^4.1.12"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/common-tags": "^1.8.4",
|
|
43
43
|
"@types/eslint": "^9.6.1",
|
|
44
|
-
"@types/
|
|
45
|
-
"@
|
|
46
|
-
"@typescript-eslint/
|
|
47
|
-
"
|
|
44
|
+
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
45
|
+
"@types/node": "^24.9.1",
|
|
46
|
+
"@typescript-eslint/rule-tester": "^8.46.2",
|
|
47
|
+
"@typescript-eslint/utils": "^8.46.2",
|
|
48
|
+
"eslint-plugin-eslint-plugin": "^7.1.0",
|
|
48
49
|
"globals": "^16.4.0",
|
|
49
50
|
"husky": "^9.1.7",
|
|
50
51
|
"jiti": "^2.6.1",
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
"tsup": "^8.5.0",
|
|
53
54
|
"typescript": "^5.9.3",
|
|
54
55
|
"vite-tsconfig-paths": "^5.1.4",
|
|
55
|
-
"vitest": "^
|
|
56
|
+
"vitest": "^4.0.3"
|
|
56
57
|
},
|
|
57
58
|
"peerDependencies": {
|
|
58
59
|
"@typescript-eslint/eslint-plugin": "^8.37.0",
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
"eslint-config-prettier": "^10.1.8",
|
|
62
63
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
63
64
|
"eslint-plugin-import": "^2.32.0",
|
|
65
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
64
66
|
"eslint-plugin-perfectionist": "^4.15.0",
|
|
65
67
|
"eslint-plugin-prettier": "^5.5.3",
|
|
66
68
|
"eslint-plugin-react": "^7.37.5",
|