@2digits/eslint-config 4.1.0 → 4.1.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.d.cts +23 -3
- package/dist/index.d.ts +23 -3
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -2792,6 +2792,11 @@ Backward pagination arguments
|
|
|
2792
2792
|
* @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
|
|
2793
2793
|
*/
|
|
2794
2794
|
'react-dom/no-flush-sync'?: Linter.RuleEntry<[]>
|
|
2795
|
+
/**
|
|
2796
|
+
* replaces usages of 'ReactDom.hydrate()' with 'hydrateRoot()'
|
|
2797
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-hydrate
|
|
2798
|
+
*/
|
|
2799
|
+
'react-dom/no-hydrate'?: Linter.RuleEntry<[]>
|
|
2795
2800
|
/**
|
|
2796
2801
|
* enforce that button component have an explicit 'type' attribute
|
|
2797
2802
|
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
|
|
@@ -2807,6 +2812,11 @@ Backward pagination arguments
|
|
|
2807
2812
|
* @see https://eslint-react.xyz/docs/rules/dom-no-namespace
|
|
2808
2813
|
*/
|
|
2809
2814
|
'react-dom/no-namespace'?: Linter.RuleEntry<[]>
|
|
2815
|
+
/**
|
|
2816
|
+
* replace usages of 'ReactDom.render()' with 'createRoot(node).render()'
|
|
2817
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-render
|
|
2818
|
+
*/
|
|
2819
|
+
'react-dom/no-render'?: Linter.RuleEntry<[]>
|
|
2810
2820
|
/**
|
|
2811
2821
|
* disallow usage of the return value of 'ReactDOM.render'
|
|
2812
2822
|
* @see https://eslint-react.xyz/docs/rules/dom-no-render-return-value
|
|
@@ -2832,6 +2842,11 @@ Backward pagination arguments
|
|
|
2832
2842
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
|
|
2833
2843
|
*/
|
|
2834
2844
|
'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>
|
|
2845
|
+
/**
|
|
2846
|
+
* replace usages of 'ReactDom.render()' with 'createRoot(node).render()'
|
|
2847
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-use-form-state
|
|
2848
|
+
*/
|
|
2849
|
+
'react-dom/no-use-form-state'?: Linter.RuleEntry<[]>
|
|
2835
2850
|
/**
|
|
2836
2851
|
* disallow void elements (AKA self-closing elements) from having children
|
|
2837
2852
|
* @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
|
|
@@ -3124,7 +3139,7 @@ Backward pagination arguments
|
|
|
3124
3139
|
'react-extra/use-jsx-vars'?: Linter.RuleEntry<[]>
|
|
3125
3140
|
/**
|
|
3126
3141
|
* enforce custom Hooks to use at least one other hook inside
|
|
3127
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-
|
|
3142
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
3128
3143
|
*/
|
|
3129
3144
|
'react-hooks-extra/ensure-custom-hooks-using-other-hooks'?: Linter.RuleEntry<[]>
|
|
3130
3145
|
/**
|
|
@@ -3149,7 +3164,7 @@ Backward pagination arguments
|
|
|
3149
3164
|
'react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
|
|
3150
3165
|
/**
|
|
3151
3166
|
* enforce custom Hooks to use at least one other hook inside
|
|
3152
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-
|
|
3167
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
3153
3168
|
*/
|
|
3154
3169
|
'react-hooks-extra/no-redundant-custom-hook'?: Linter.RuleEntry<[]>
|
|
3155
3170
|
/**
|
|
@@ -3164,7 +3179,12 @@ Backward pagination arguments
|
|
|
3164
3179
|
'react-hooks-extra/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>
|
|
3165
3180
|
/**
|
|
3166
3181
|
* enforce custom Hooks to use at least one other hook inside
|
|
3167
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-
|
|
3182
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
3183
|
+
*/
|
|
3184
|
+
'react-hooks-extra/no-unnecessary-use-prefix'?: Linter.RuleEntry<[]>
|
|
3185
|
+
/**
|
|
3186
|
+
* enforce custom Hooks to use at least one other hook inside
|
|
3187
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
3168
3188
|
*/
|
|
3169
3189
|
'react-hooks-extra/no-useless-custom-hooks'?: Linter.RuleEntry<[]>
|
|
3170
3190
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -2792,6 +2792,11 @@ Backward pagination arguments
|
|
|
2792
2792
|
* @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
|
|
2793
2793
|
*/
|
|
2794
2794
|
'react-dom/no-flush-sync'?: Linter.RuleEntry<[]>
|
|
2795
|
+
/**
|
|
2796
|
+
* replaces usages of 'ReactDom.hydrate()' with 'hydrateRoot()'
|
|
2797
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-hydrate
|
|
2798
|
+
*/
|
|
2799
|
+
'react-dom/no-hydrate'?: Linter.RuleEntry<[]>
|
|
2795
2800
|
/**
|
|
2796
2801
|
* enforce that button component have an explicit 'type' attribute
|
|
2797
2802
|
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
|
|
@@ -2807,6 +2812,11 @@ Backward pagination arguments
|
|
|
2807
2812
|
* @see https://eslint-react.xyz/docs/rules/dom-no-namespace
|
|
2808
2813
|
*/
|
|
2809
2814
|
'react-dom/no-namespace'?: Linter.RuleEntry<[]>
|
|
2815
|
+
/**
|
|
2816
|
+
* replace usages of 'ReactDom.render()' with 'createRoot(node).render()'
|
|
2817
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-render
|
|
2818
|
+
*/
|
|
2819
|
+
'react-dom/no-render'?: Linter.RuleEntry<[]>
|
|
2810
2820
|
/**
|
|
2811
2821
|
* disallow usage of the return value of 'ReactDOM.render'
|
|
2812
2822
|
* @see https://eslint-react.xyz/docs/rules/dom-no-render-return-value
|
|
@@ -2832,6 +2842,11 @@ Backward pagination arguments
|
|
|
2832
2842
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
|
|
2833
2843
|
*/
|
|
2834
2844
|
'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>
|
|
2845
|
+
/**
|
|
2846
|
+
* replace usages of 'ReactDom.render()' with 'createRoot(node).render()'
|
|
2847
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-use-form-state
|
|
2848
|
+
*/
|
|
2849
|
+
'react-dom/no-use-form-state'?: Linter.RuleEntry<[]>
|
|
2835
2850
|
/**
|
|
2836
2851
|
* disallow void elements (AKA self-closing elements) from having children
|
|
2837
2852
|
* @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
|
|
@@ -3124,7 +3139,7 @@ Backward pagination arguments
|
|
|
3124
3139
|
'react-extra/use-jsx-vars'?: Linter.RuleEntry<[]>
|
|
3125
3140
|
/**
|
|
3126
3141
|
* enforce custom Hooks to use at least one other hook inside
|
|
3127
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-
|
|
3142
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
3128
3143
|
*/
|
|
3129
3144
|
'react-hooks-extra/ensure-custom-hooks-using-other-hooks'?: Linter.RuleEntry<[]>
|
|
3130
3145
|
/**
|
|
@@ -3149,7 +3164,7 @@ Backward pagination arguments
|
|
|
3149
3164
|
'react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
|
|
3150
3165
|
/**
|
|
3151
3166
|
* enforce custom Hooks to use at least one other hook inside
|
|
3152
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-
|
|
3167
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
3153
3168
|
*/
|
|
3154
3169
|
'react-hooks-extra/no-redundant-custom-hook'?: Linter.RuleEntry<[]>
|
|
3155
3170
|
/**
|
|
@@ -3164,7 +3179,12 @@ Backward pagination arguments
|
|
|
3164
3179
|
'react-hooks-extra/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>
|
|
3165
3180
|
/**
|
|
3166
3181
|
* enforce custom Hooks to use at least one other hook inside
|
|
3167
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-
|
|
3182
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
3183
|
+
*/
|
|
3184
|
+
'react-hooks-extra/no-unnecessary-use-prefix'?: Linter.RuleEntry<[]>
|
|
3185
|
+
/**
|
|
3186
|
+
* enforce custom Hooks to use at least one other hook inside
|
|
3187
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
3168
3188
|
*/
|
|
3169
3189
|
'react-hooks-extra/no-useless-custom-hooks'?: Linter.RuleEntry<[]>
|
|
3170
3190
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/eslint-config",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Effortlessly enforce best practices and catch errors with this comprehensive ESLint configuration for TypeScript, featuring popular plugins like @typescript-eslint, eslint-plugin-react, and eslint-plugin-unicorn.",
|
|
5
5
|
"homepage": "https://2d-configs.vercel.app/",
|
|
6
6
|
"repository": {
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"public": true,
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
|
|
38
|
-
"@eslint-react/eslint-plugin": "1.
|
|
38
|
+
"@eslint-react/eslint-plugin": "1.35.0",
|
|
39
39
|
"@eslint/compat": "1.2.7",
|
|
40
40
|
"@eslint/css": "0.5.0",
|
|
41
41
|
"@eslint/js": "9.22.0",
|
|
42
42
|
"@graphql-eslint/eslint-plugin": "4.3.0",
|
|
43
|
-
"@next/eslint-plugin-next": "15.2.
|
|
43
|
+
"@next/eslint-plugin-next": "15.2.3",
|
|
44
44
|
"@stylistic/eslint-plugin": "4.2.0",
|
|
45
45
|
"@tanstack/eslint-plugin-query": "5.68.0",
|
|
46
46
|
"@typescript-eslint/parser": "8.26.1",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"eslint-plugin-antfu": "3.1.1",
|
|
51
51
|
"eslint-plugin-de-morgan": "1.2.1",
|
|
52
52
|
"eslint-plugin-drizzle": "0.2.3",
|
|
53
|
-
"eslint-plugin-jsdoc": "50.6.
|
|
53
|
+
"eslint-plugin-jsdoc": "50.6.8",
|
|
54
54
|
"eslint-plugin-jsonc": "2.19.1",
|
|
55
55
|
"eslint-plugin-n": "17.16.2",
|
|
56
56
|
"eslint-plugin-pnpm": "0.3.1",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
59
59
|
"eslint-plugin-regexp": "2.7.0",
|
|
60
60
|
"eslint-plugin-sonarjs": "3.0.2",
|
|
61
|
-
"eslint-plugin-storybook": "0.11.
|
|
61
|
+
"eslint-plugin-storybook": "0.11.6",
|
|
62
62
|
"eslint-plugin-tailwindcss": "3.18.0",
|
|
63
63
|
"eslint-plugin-turbo": "2.4.4",
|
|
64
64
|
"eslint-plugin-unicorn": "57.0.0",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"local-pkg": "1.1.1",
|
|
71
71
|
"typescript-eslint": "8.26.1",
|
|
72
72
|
"yaml-eslint-parser": "1.3.0",
|
|
73
|
-
"@2digits/
|
|
74
|
-
"@2digits/
|
|
73
|
+
"@2digits/eslint-plugin": "2.3.42",
|
|
74
|
+
"@2digits/constants": "0.3.7"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@eslint/config-inspector": "1.0.2",
|