@2digits/eslint-config 4.0.0 → 4.0.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 CHANGED
@@ -2819,7 +2819,7 @@ Backward pagination arguments
2819
2819
  'react-extra/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
2820
2820
  /**
2821
2821
  * require a 'ref' parameter to be set when using 'forwardRef'
2822
- * @see https://eslint-react.xyz/docs/rules/ensure-forward-ref-using-ref
2822
+ * @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
2823
2823
  */
2824
2824
  'react-extra/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
2825
2825
  /**
@@ -2898,22 +2898,22 @@ Backward pagination arguments
2898
2898
  */
2899
2899
  'react-extra/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
2900
2900
  /**
2901
- * replace 'componentWillMount' with 'UNSAFE_componentWillMount'
2901
+ * replace usages of 'componentWillMount' with 'UNSAFE_componentWillMount'
2902
2902
  * @see https://eslint-react.xyz/docs/rules/no-component-will-mount
2903
2903
  */
2904
2904
  'react-extra/no-component-will-mount'?: Linter.RuleEntry<[]>
2905
2905
  /**
2906
- * replace 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'
2906
+ * replace usages of 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'
2907
2907
  * @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
2908
2908
  */
2909
2909
  'react-extra/no-component-will-receive-props'?: Linter.RuleEntry<[]>
2910
2910
  /**
2911
- * replace 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'
2911
+ * replace usages of 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'
2912
2912
  * @see https://eslint-react.xyz/docs/rules/no-component-will-update
2913
2913
  */
2914
2914
  'react-extra/no-component-will-update'?: Linter.RuleEntry<[]>
2915
2915
  /**
2916
- * replace '<Context.Provider>' with '<Context>'
2916
+ * replace usages of '<Context.Provider>' with '<Context>'
2917
2917
  * @see https://eslint-react.xyz/docs/rules/no-context-provider
2918
2918
  */
2919
2919
  'react-extra/no-context-provider'?: Linter.RuleEntry<[]>
@@ -2943,7 +2943,7 @@ Backward pagination arguments
2943
2943
  */
2944
2944
  'react-extra/no-duplicate-key'?: Linter.RuleEntry<[]>
2945
2945
  /**
2946
- * replace 'forwardRef' with passing 'ref' as a prop
2946
+ * replace usages of 'forwardRef' with passing 'ref' as a prop
2947
2947
  * @see https://eslint-react.xyz/docs/rules/no-forward-ref
2948
2948
  */
2949
2949
  'react-extra/no-forward-ref'?: Linter.RuleEntry<[]>
@@ -3043,10 +3043,15 @@ Backward pagination arguments
3043
3043
  */
3044
3044
  'react-extra/no-unused-state'?: Linter.RuleEntry<[]>
3045
3045
  /**
3046
- * replace 'useContext' with 'use'
3046
+ * replace usages of 'useContext' with 'use'
3047
3047
  * @see https://eslint-react.xyz/docs/rules/no-use-context
3048
3048
  */
3049
3049
  'react-extra/no-use-context'?: Linter.RuleEntry<[]>
3050
+ /**
3051
+ * require a 'ref' parameter to be set when using 'forwardRef'
3052
+ * @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
3053
+ */
3054
+ 'react-extra/no-useless-forward-ref'?: Linter.RuleEntry<[]>
3050
3055
  /**
3051
3056
  * disallow useless fragments
3052
3057
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
package/dist/index.d.ts CHANGED
@@ -2819,7 +2819,7 @@ Backward pagination arguments
2819
2819
  'react-extra/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
2820
2820
  /**
2821
2821
  * require a 'ref' parameter to be set when using 'forwardRef'
2822
- * @see https://eslint-react.xyz/docs/rules/ensure-forward-ref-using-ref
2822
+ * @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
2823
2823
  */
2824
2824
  'react-extra/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
2825
2825
  /**
@@ -2898,22 +2898,22 @@ Backward pagination arguments
2898
2898
  */
2899
2899
  'react-extra/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
2900
2900
  /**
2901
- * replace 'componentWillMount' with 'UNSAFE_componentWillMount'
2901
+ * replace usages of 'componentWillMount' with 'UNSAFE_componentWillMount'
2902
2902
  * @see https://eslint-react.xyz/docs/rules/no-component-will-mount
2903
2903
  */
2904
2904
  'react-extra/no-component-will-mount'?: Linter.RuleEntry<[]>
2905
2905
  /**
2906
- * replace 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'
2906
+ * replace usages of 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'
2907
2907
  * @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
2908
2908
  */
2909
2909
  'react-extra/no-component-will-receive-props'?: Linter.RuleEntry<[]>
2910
2910
  /**
2911
- * replace 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'
2911
+ * replace usages of 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'
2912
2912
  * @see https://eslint-react.xyz/docs/rules/no-component-will-update
2913
2913
  */
2914
2914
  'react-extra/no-component-will-update'?: Linter.RuleEntry<[]>
2915
2915
  /**
2916
- * replace '<Context.Provider>' with '<Context>'
2916
+ * replace usages of '<Context.Provider>' with '<Context>'
2917
2917
  * @see https://eslint-react.xyz/docs/rules/no-context-provider
2918
2918
  */
2919
2919
  'react-extra/no-context-provider'?: Linter.RuleEntry<[]>
@@ -2943,7 +2943,7 @@ Backward pagination arguments
2943
2943
  */
2944
2944
  'react-extra/no-duplicate-key'?: Linter.RuleEntry<[]>
2945
2945
  /**
2946
- * replace 'forwardRef' with passing 'ref' as a prop
2946
+ * replace usages of 'forwardRef' with passing 'ref' as a prop
2947
2947
  * @see https://eslint-react.xyz/docs/rules/no-forward-ref
2948
2948
  */
2949
2949
  'react-extra/no-forward-ref'?: Linter.RuleEntry<[]>
@@ -3043,10 +3043,15 @@ Backward pagination arguments
3043
3043
  */
3044
3044
  'react-extra/no-unused-state'?: Linter.RuleEntry<[]>
3045
3045
  /**
3046
- * replace 'useContext' with 'use'
3046
+ * replace usages of 'useContext' with 'use'
3047
3047
  * @see https://eslint-react.xyz/docs/rules/no-use-context
3048
3048
  */
3049
3049
  'react-extra/no-use-context'?: Linter.RuleEntry<[]>
3050
+ /**
3051
+ * require a 'ref' parameter to be set when using 'forwardRef'
3052
+ * @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
3053
+ */
3054
+ 'react-extra/no-useless-forward-ref'?: Linter.RuleEntry<[]>
3050
3055
  /**
3051
3056
  * disallow useless fragments
3052
3057
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2digits/eslint-config",
3
- "version": "4.0.0",
3
+ "version": "4.0.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,13 +35,13 @@
35
35
  "public": true,
36
36
  "dependencies": {
37
37
  "@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
38
- "@eslint-react/eslint-plugin": "1.31.0",
38
+ "@eslint-react/eslint-plugin": "1.33.0",
39
39
  "@eslint/compat": "1.2.7",
40
40
  "@eslint/core": "0.12.0",
41
41
  "@eslint/js": "9.22.0",
42
42
  "@eslint/plugin-kit": "0.2.7",
43
43
  "@graphql-eslint/eslint-plugin": "4.3.0",
44
- "@next/eslint-plugin-next": "15.2.1",
44
+ "@next/eslint-plugin-next": "15.2.2",
45
45
  "@stylistic/eslint-plugin": "4.2.0",
46
46
  "@tanstack/eslint-plugin-query": "5.67.2",
47
47
  "@typescript-eslint/parser": "8.26.1",
@@ -50,9 +50,9 @@
50
50
  "eslint-config-prettier": "10.1.1",
51
51
  "eslint-flat-config-utils": "2.0.1",
52
52
  "eslint-plugin-antfu": "3.1.1",
53
- "eslint-plugin-de-morgan": "1.2.0",
53
+ "eslint-plugin-de-morgan": "1.2.1",
54
54
  "eslint-plugin-drizzle": "0.2.3",
55
- "eslint-plugin-jsdoc": "50.6.4",
55
+ "eslint-plugin-jsdoc": "50.6.6",
56
56
  "eslint-plugin-jsonc": "2.19.1",
57
57
  "eslint-plugin-n": "17.16.2",
58
58
  "eslint-plugin-react-compiler": "19.0.0-beta-e552027-20250112",