@2digits/eslint-config 4.4.10 → 4.4.11
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 -0
- package/dist/index.d.ts +12 -0
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -2903,6 +2903,11 @@ Backward pagination arguments
|
|
|
2903
2903
|
* @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
|
|
2904
2904
|
*/
|
|
2905
2905
|
'react-extra/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
|
|
2906
|
+
/**
|
|
2907
|
+
* Enforces that the 'key' attribute is placed before the spread attribute in JSX elements.
|
|
2908
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-key-before-spread
|
|
2909
|
+
*/
|
|
2910
|
+
'react-extra/jsx-key-before-spread'?: Linter.RuleEntry<[]>
|
|
2906
2911
|
/**
|
|
2907
2912
|
* Disallow duplicate props in JSX elements.
|
|
2908
2913
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
|
|
@@ -6197,6 +6202,11 @@ Backward pagination arguments
|
|
|
6197
6202
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-constraint
|
|
6198
6203
|
*/
|
|
6199
6204
|
'ts/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>
|
|
6205
|
+
/**
|
|
6206
|
+
* Disallow conversion idioms when they do not change the type or value of the expression
|
|
6207
|
+
* @see https://typescript-eslint.io/rules/no-unnecessary-type-conversion
|
|
6208
|
+
*/
|
|
6209
|
+
'ts/no-unnecessary-type-conversion'?: Linter.RuleEntry<[]>
|
|
6200
6210
|
/**
|
|
6201
6211
|
* Disallow type parameters that aren't used multiple times
|
|
6202
6212
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
|
|
@@ -12625,6 +12635,8 @@ type TsOnlyThrowError = []|[{
|
|
|
12625
12635
|
package: string
|
|
12626
12636
|
})[]
|
|
12627
12637
|
|
|
12638
|
+
allowRethrowing?: boolean
|
|
12639
|
+
|
|
12628
12640
|
allowThrowingAny?: boolean
|
|
12629
12641
|
|
|
12630
12642
|
allowThrowingUnknown?: boolean
|
package/dist/index.d.ts
CHANGED
|
@@ -2903,6 +2903,11 @@ Backward pagination arguments
|
|
|
2903
2903
|
* @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
|
|
2904
2904
|
*/
|
|
2905
2905
|
'react-extra/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
|
|
2906
|
+
/**
|
|
2907
|
+
* Enforces that the 'key' attribute is placed before the spread attribute in JSX elements.
|
|
2908
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-key-before-spread
|
|
2909
|
+
*/
|
|
2910
|
+
'react-extra/jsx-key-before-spread'?: Linter.RuleEntry<[]>
|
|
2906
2911
|
/**
|
|
2907
2912
|
* Disallow duplicate props in JSX elements.
|
|
2908
2913
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
|
|
@@ -6197,6 +6202,11 @@ Backward pagination arguments
|
|
|
6197
6202
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-constraint
|
|
6198
6203
|
*/
|
|
6199
6204
|
'ts/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>
|
|
6205
|
+
/**
|
|
6206
|
+
* Disallow conversion idioms when they do not change the type or value of the expression
|
|
6207
|
+
* @see https://typescript-eslint.io/rules/no-unnecessary-type-conversion
|
|
6208
|
+
*/
|
|
6209
|
+
'ts/no-unnecessary-type-conversion'?: Linter.RuleEntry<[]>
|
|
6200
6210
|
/**
|
|
6201
6211
|
* Disallow type parameters that aren't used multiple times
|
|
6202
6212
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
|
|
@@ -12625,6 +12635,8 @@ type TsOnlyThrowError = []|[{
|
|
|
12625
12635
|
package: string
|
|
12626
12636
|
})[]
|
|
12627
12637
|
|
|
12638
|
+
allowRethrowing?: boolean
|
|
12639
|
+
|
|
12628
12640
|
allowThrowingAny?: boolean
|
|
12629
12641
|
|
|
12630
12642
|
allowThrowingUnknown?: boolean
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/eslint-config",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.11",
|
|
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": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"public": true,
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
|
|
32
|
-
"@eslint-react/eslint-plugin": "1.
|
|
32
|
+
"@eslint-react/eslint-plugin": "1.49.0",
|
|
33
33
|
"@eslint/compat": "1.2.9",
|
|
34
34
|
"@eslint/css": "0.7.0",
|
|
35
35
|
"@eslint/js": "9.26.0",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@next/eslint-plugin-next": "15.3.1",
|
|
39
39
|
"@stylistic/eslint-plugin": "4.2.0",
|
|
40
40
|
"@tanstack/eslint-plugin-query": "5.74.7",
|
|
41
|
-
"@typescript-eslint/parser": "8.
|
|
42
|
-
"@typescript-eslint/utils": "8.
|
|
41
|
+
"@typescript-eslint/parser": "8.32.0",
|
|
42
|
+
"@typescript-eslint/utils": "8.32.0",
|
|
43
43
|
"eslint-config-flat-gitignore": "2.1.0",
|
|
44
44
|
"eslint-config-prettier": "10.1.2",
|
|
45
45
|
"eslint-flat-config-utils": "2.0.1",
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
"graphql-config": "5.1.5",
|
|
66
66
|
"jsonc-eslint-parser": "2.4.0",
|
|
67
67
|
"local-pkg": "1.1.1",
|
|
68
|
-
"typescript-eslint": "8.
|
|
68
|
+
"typescript-eslint": "8.32.0",
|
|
69
69
|
"yaml-eslint-parser": "1.3.0",
|
|
70
|
-
"@2digits/
|
|
71
|
-
"@2digits/
|
|
70
|
+
"@2digits/eslint-plugin": "3.0.6",
|
|
71
|
+
"@2digits/constants": "1.0.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@eslint/config-inspector": "1.0.2",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"tinyglobby": "0.2.13",
|
|
83
83
|
"typescript": "5.8.3",
|
|
84
84
|
"unbuild": "3.5.0",
|
|
85
|
-
"vitest": "3.1.
|
|
85
|
+
"vitest": "3.1.3",
|
|
86
86
|
"@2digits/tsconfig": "0.7.1"
|
|
87
87
|
},
|
|
88
88
|
"scripts": {
|