@2digits/eslint-config 3.0.6 → 3.0.7
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 +8 -8
- package/dist/index.d.ts +8 -8
- package/package.json +9 -9
package/dist/index.d.cts
CHANGED
|
@@ -2898,22 +2898,22 @@ Backward pagination arguments
|
|
|
2898
2898
|
*/
|
|
2899
2899
|
'react-extra/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2900
2900
|
/**
|
|
2901
|
-
*
|
|
2901
|
+
* replace '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
|
-
*
|
|
2906
|
+
* replace '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
|
-
*
|
|
2911
|
+
* replace '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
|
-
*
|
|
2916
|
+
* replace '<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
|
-
*
|
|
2946
|
+
* replace '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,7 +3043,7 @@ Backward pagination arguments
|
|
|
3043
3043
|
*/
|
|
3044
3044
|
'react-extra/no-unused-state'?: Linter.RuleEntry<[]>
|
|
3045
3045
|
/**
|
|
3046
|
-
*
|
|
3046
|
+
* replace '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<[]>
|
|
@@ -3068,12 +3068,12 @@ Backward pagination arguments
|
|
|
3068
3068
|
*/
|
|
3069
3069
|
'react-extra/prefer-read-only-props'?: Linter.RuleEntry<[]>
|
|
3070
3070
|
/**
|
|
3071
|
-
* enforce
|
|
3071
|
+
* enforce the use of shorthand syntax for boolean attributes
|
|
3072
3072
|
* @see https://eslint-react.xyz/docs/rules/prefer-shorthand-boolean
|
|
3073
3073
|
*/
|
|
3074
3074
|
'react-extra/prefer-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
3075
3075
|
/**
|
|
3076
|
-
* enforce
|
|
3076
|
+
* enforce the use of shorthand syntax for fragments
|
|
3077
3077
|
* @see https://eslint-react.xyz/docs/rules/prefer-shorthand-fragment
|
|
3078
3078
|
*/
|
|
3079
3079
|
'react-extra/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
|
package/dist/index.d.ts
CHANGED
|
@@ -2898,22 +2898,22 @@ Backward pagination arguments
|
|
|
2898
2898
|
*/
|
|
2899
2899
|
'react-extra/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2900
2900
|
/**
|
|
2901
|
-
*
|
|
2901
|
+
* replace '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
|
-
*
|
|
2906
|
+
* replace '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
|
-
*
|
|
2911
|
+
* replace '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
|
-
*
|
|
2916
|
+
* replace '<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
|
-
*
|
|
2946
|
+
* replace '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,7 +3043,7 @@ Backward pagination arguments
|
|
|
3043
3043
|
*/
|
|
3044
3044
|
'react-extra/no-unused-state'?: Linter.RuleEntry<[]>
|
|
3045
3045
|
/**
|
|
3046
|
-
*
|
|
3046
|
+
* replace '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<[]>
|
|
@@ -3068,12 +3068,12 @@ Backward pagination arguments
|
|
|
3068
3068
|
*/
|
|
3069
3069
|
'react-extra/prefer-read-only-props'?: Linter.RuleEntry<[]>
|
|
3070
3070
|
/**
|
|
3071
|
-
* enforce
|
|
3071
|
+
* enforce the use of shorthand syntax for boolean attributes
|
|
3072
3072
|
* @see https://eslint-react.xyz/docs/rules/prefer-shorthand-boolean
|
|
3073
3073
|
*/
|
|
3074
3074
|
'react-extra/prefer-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
3075
3075
|
/**
|
|
3076
|
-
* enforce
|
|
3076
|
+
* enforce the use of shorthand syntax for fragments
|
|
3077
3077
|
* @see https://eslint-react.xyz/docs/rules/prefer-shorthand-fragment
|
|
3078
3078
|
*/
|
|
3079
3079
|
'react-extra/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/eslint-config",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.7",
|
|
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,20 +35,20 @@
|
|
|
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.31.0",
|
|
39
39
|
"@eslint/compat": "1.2.7",
|
|
40
40
|
"@eslint/core": "0.12.0",
|
|
41
|
-
"@eslint/js": "9.
|
|
41
|
+
"@eslint/js": "9.22.0",
|
|
42
42
|
"@eslint/plugin-kit": "0.2.7",
|
|
43
43
|
"@graphql-eslint/eslint-plugin": "4.3.0",
|
|
44
44
|
"@next/eslint-plugin-next": "15.2.1",
|
|
45
|
-
"@tanstack/eslint-plugin-query": "5.
|
|
45
|
+
"@tanstack/eslint-plugin-query": "5.67.2",
|
|
46
46
|
"@typescript-eslint/parser": "8.26.0",
|
|
47
47
|
"css-tree": "3.1.0",
|
|
48
48
|
"eslint-config-flat-gitignore": "2.1.0",
|
|
49
|
-
"eslint-config-prettier": "10.
|
|
49
|
+
"eslint-config-prettier": "10.1.1",
|
|
50
50
|
"eslint-flat-config-utils": "2.0.1",
|
|
51
|
-
"eslint-plugin-antfu": "3.1.
|
|
51
|
+
"eslint-plugin-antfu": "3.1.1",
|
|
52
52
|
"eslint-plugin-de-morgan": "1.2.0",
|
|
53
53
|
"eslint-plugin-drizzle": "0.2.3",
|
|
54
54
|
"eslint-plugin-jsdoc": "50.6.3",
|
|
@@ -70,14 +70,14 @@
|
|
|
70
70
|
"local-pkg": "1.1.1",
|
|
71
71
|
"typescript-eslint": "8.26.0",
|
|
72
72
|
"@2digits/constants": "0.3.7",
|
|
73
|
-
"@2digits/eslint-plugin": "2.3.
|
|
73
|
+
"@2digits/eslint-plugin": "2.3.41"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@eslint/config-inspector": "1.0.2",
|
|
77
77
|
"@eslint/css": "0.4.0",
|
|
78
|
-
"@types/node": "22.13.
|
|
78
|
+
"@types/node": "22.13.10",
|
|
79
79
|
"@typescript-eslint/utils": "8.26.0",
|
|
80
|
-
"eslint": "9.
|
|
80
|
+
"eslint": "9.22.0",
|
|
81
81
|
"eslint-typegen": "2.0.0",
|
|
82
82
|
"tsup": "8.4.0",
|
|
83
83
|
"typescript": "5.8.2",
|