@2digits/eslint-config 4.4.1 → 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 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
- * Disallows calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks.
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<[]>
@@ -3092,7 +3102,7 @@ Backward pagination arguments
3092
3102
  */
3093
3103
  'react-extra/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>
3094
3104
  /**
3095
- * Disallow deprecated string `refs`.
3105
+ * Replaces string refs with callback refs.
3096
3106
  * @see https://eslint-react.xyz/docs/rules/no-string-refs
3097
3107
  */
3098
3108
  'react-extra/no-string-refs'?: 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
- * Disallows calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks.
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<[]>
@@ -3092,7 +3102,7 @@ Backward pagination arguments
3092
3102
  */
3093
3103
  'react-extra/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>
3094
3104
  /**
3095
- * Disallow deprecated string `refs`.
3105
+ * Replaces string refs with callback refs.
3096
3106
  * @see https://eslint-react.xyz/docs/rules/no-string-refs
3097
3107
  */
3098
3108
  'react-extra/no-string-refs'?: Linter.RuleEntry<[]>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2digits/eslint-config",
3
- "version": "4.4.1",
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,20 +28,20 @@
28
28
  "license": "MIT",
29
29
  "public": true,
30
30
  "dependencies": {
31
- "@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
32
- "@eslint-react/eslint-plugin": "1.42.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",
36
36
  "@eslint/markdown": "6.3.0",
37
37
  "@graphql-eslint/eslint-plugin": "4.4.0",
38
- "@next/eslint-plugin-next": "15.2.5",
38
+ "@next/eslint-plugin-next": "15.3.0",
39
39
  "@stylistic/eslint-plugin": "4.2.0",
40
- "@tanstack/eslint-plugin-query": "5.72.1",
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",
44
- "eslint-config-prettier": "10.1.1",
44
+ "eslint-config-prettier": "10.1.2",
45
45
  "eslint-flat-config-utils": "2.0.1",
46
46
  "eslint-merge-processors": "2.0.0",
47
47
  "eslint-plugin-antfu": "3.1.1",
@@ -67,13 +67,13 @@
67
67
  "local-pkg": "1.1.1",
68
68
  "typescript-eslint": "8.29.1",
69
69
  "yaml-eslint-parser": "1.3.0",
70
- "@2digits/eslint-plugin": "3.0.0",
71
- "@2digits/constants": "1.0.0"
70
+ "@2digits/constants": "1.0.0",
71
+ "@2digits/eslint-plugin": "3.0.1"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@eslint/config-inspector": "1.0.2",
75
- "@types/node": "22.14.0",
76
- "@types/react": "19.1.0",
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",