@2digits/eslint-config 4.4.2 → 4.4.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.d.mts +12 -2
- package/dist/index.d.ts +12 -2
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -2957,7 +2957,7 @@ Backward pagination arguments
|
|
|
2957
2957
|
*/
|
|
2958
2958
|
'react-extra/no-children-to-array'?: Linter.RuleEntry<[]>
|
|
2959
2959
|
/**
|
|
2960
|
-
* Disallow class components.
|
|
2960
|
+
* Disallow class components except for error boundaries.
|
|
2961
2961
|
* @see https://eslint-react.xyz/docs/rules/no-class-component
|
|
2962
2962
|
*/
|
|
2963
2963
|
'react-extra/no-class-component'?: Linter.RuleEntry<[]>
|
|
@@ -3056,6 +3056,11 @@ Backward pagination arguments
|
|
|
3056
3056
|
* @see https://eslint-react.xyz/docs/rules/no-missing-key
|
|
3057
3057
|
*/
|
|
3058
3058
|
'react-extra/no-missing-key'?: Linter.RuleEntry<[]>
|
|
3059
|
+
/**
|
|
3060
|
+
* Prevents incorrect usage of `captureOwnerStack`.
|
|
3061
|
+
* @see https://eslint-react.xyz/docs/rules/no-misused-capture-owner-stack
|
|
3062
|
+
*/
|
|
3063
|
+
'react-extra/no-misused-capture-owner-stack'?: Linter.RuleEntry<[]>
|
|
3059
3064
|
/**
|
|
3060
3065
|
* Disallow nesting component definitions inside other components.
|
|
3061
3066
|
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
@@ -3066,6 +3071,11 @@ Backward pagination arguments
|
|
|
3066
3071
|
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
3067
3072
|
*/
|
|
3068
3073
|
'react-extra/no-nested-components'?: Linter.RuleEntry<[]>
|
|
3074
|
+
/**
|
|
3075
|
+
* Disallow nesting lazy component declarations inside other components.
|
|
3076
|
+
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
3077
|
+
*/
|
|
3078
|
+
'react-extra/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>
|
|
3069
3079
|
/**
|
|
3070
3080
|
* Disallow `propTypes` in favor of TypeScript or another type-checking solution.
|
|
3071
3081
|
* @see https://eslint-react.xyz/docs/rules/no-prop-types
|
|
@@ -3082,7 +3092,7 @@ Backward pagination arguments
|
|
|
3082
3092
|
*/
|
|
3083
3093
|
'react-extra/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>
|
|
3084
3094
|
/**
|
|
3085
|
-
*
|
|
3095
|
+
* Disallow calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks.
|
|
3086
3096
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
|
|
3087
3097
|
*/
|
|
3088
3098
|
'react-extra/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>
|
package/dist/index.d.ts
CHANGED
|
@@ -2957,7 +2957,7 @@ Backward pagination arguments
|
|
|
2957
2957
|
*/
|
|
2958
2958
|
'react-extra/no-children-to-array'?: Linter.RuleEntry<[]>
|
|
2959
2959
|
/**
|
|
2960
|
-
* Disallow class components.
|
|
2960
|
+
* Disallow class components except for error boundaries.
|
|
2961
2961
|
* @see https://eslint-react.xyz/docs/rules/no-class-component
|
|
2962
2962
|
*/
|
|
2963
2963
|
'react-extra/no-class-component'?: Linter.RuleEntry<[]>
|
|
@@ -3056,6 +3056,11 @@ Backward pagination arguments
|
|
|
3056
3056
|
* @see https://eslint-react.xyz/docs/rules/no-missing-key
|
|
3057
3057
|
*/
|
|
3058
3058
|
'react-extra/no-missing-key'?: Linter.RuleEntry<[]>
|
|
3059
|
+
/**
|
|
3060
|
+
* Prevents incorrect usage of `captureOwnerStack`.
|
|
3061
|
+
* @see https://eslint-react.xyz/docs/rules/no-misused-capture-owner-stack
|
|
3062
|
+
*/
|
|
3063
|
+
'react-extra/no-misused-capture-owner-stack'?: Linter.RuleEntry<[]>
|
|
3059
3064
|
/**
|
|
3060
3065
|
* Disallow nesting component definitions inside other components.
|
|
3061
3066
|
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
@@ -3066,6 +3071,11 @@ Backward pagination arguments
|
|
|
3066
3071
|
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
3067
3072
|
*/
|
|
3068
3073
|
'react-extra/no-nested-components'?: Linter.RuleEntry<[]>
|
|
3074
|
+
/**
|
|
3075
|
+
* Disallow nesting lazy component declarations inside other components.
|
|
3076
|
+
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
3077
|
+
*/
|
|
3078
|
+
'react-extra/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>
|
|
3069
3079
|
/**
|
|
3070
3080
|
* Disallow `propTypes` in favor of TypeScript or another type-checking solution.
|
|
3071
3081
|
* @see https://eslint-react.xyz/docs/rules/no-prop-types
|
|
@@ -3082,7 +3092,7 @@ Backward pagination arguments
|
|
|
3082
3092
|
*/
|
|
3083
3093
|
'react-extra/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>
|
|
3084
3094
|
/**
|
|
3085
|
-
*
|
|
3095
|
+
* Disallow calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks.
|
|
3086
3096
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
|
|
3087
3097
|
*/
|
|
3088
3098
|
'react-extra/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/eslint-config",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.3",
|
|
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": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"public": true,
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@eslint-community/eslint-plugin-eslint-comments": "4.
|
|
32
|
-
"@eslint-react/eslint-plugin": "1.
|
|
31
|
+
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
|
|
32
|
+
"@eslint-react/eslint-plugin": "1.46.0",
|
|
33
33
|
"@eslint/compat": "1.2.8",
|
|
34
34
|
"@eslint/css": "0.6.0",
|
|
35
35
|
"@eslint/js": "9.24.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@graphql-eslint/eslint-plugin": "4.4.0",
|
|
38
38
|
"@next/eslint-plugin-next": "15.3.0",
|
|
39
39
|
"@stylistic/eslint-plugin": "4.2.0",
|
|
40
|
-
"@tanstack/eslint-plugin-query": "5.
|
|
40
|
+
"@tanstack/eslint-plugin-query": "5.73.3",
|
|
41
41
|
"@typescript-eslint/parser": "8.29.1",
|
|
42
42
|
"@typescript-eslint/utils": "8.29.1",
|
|
43
43
|
"eslint-config-flat-gitignore": "2.1.0",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@eslint/config-inspector": "1.0.2",
|
|
75
|
-
"@types/node": "22.14.
|
|
76
|
-
"@types/react": "19.1.
|
|
75
|
+
"@types/node": "22.14.1",
|
|
76
|
+
"@types/react": "19.1.1",
|
|
77
77
|
"dedent": "1.5.3",
|
|
78
78
|
"eslint": "9.24.0",
|
|
79
79
|
"eslint-typegen": "2.1.0",
|