@2digits/eslint-config 4.4.9 → 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 +19 -1
- package/dist/index.d.ts +19 -1
- package/package.json +12 -12
package/dist/index.d.mts
CHANGED
|
@@ -2210,7 +2210,7 @@ Backward pagination arguments
|
|
|
2210
2210
|
* Disallow identifiers from shadowing restricted names
|
|
2211
2211
|
* @see https://eslint.org/docs/latest/rules/no-shadow-restricted-names
|
|
2212
2212
|
*/
|
|
2213
|
-
'no-shadow-restricted-names'?: Linter.RuleEntry<
|
|
2213
|
+
'no-shadow-restricted-names'?: Linter.RuleEntry<NoShadowRestrictedNames>
|
|
2214
2214
|
/**
|
|
2215
2215
|
* Disallow spacing between function identifiers and their applications (deprecated)
|
|
2216
2216
|
* @see https://eslint.org/docs/latest/rules/no-spaced-func
|
|
@@ -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
|
|
@@ -9412,6 +9422,10 @@ type NoShadow = []|[{
|
|
|
9412
9422
|
allow?: string[]
|
|
9413
9423
|
ignoreOnInitialization?: boolean
|
|
9414
9424
|
}]
|
|
9425
|
+
// ----- no-shadow-restricted-names -----
|
|
9426
|
+
type NoShadowRestrictedNames = []|[{
|
|
9427
|
+
reportGlobalThis?: boolean
|
|
9428
|
+
}]
|
|
9415
9429
|
// ----- no-sync -----
|
|
9416
9430
|
type NoSync = []|[{
|
|
9417
9431
|
allowAtRootLevel?: boolean
|
|
@@ -9463,6 +9477,7 @@ type NoUnusedExpressions = []|[{
|
|
|
9463
9477
|
allowTernary?: boolean
|
|
9464
9478
|
allowTaggedTemplates?: boolean
|
|
9465
9479
|
enforceForJSX?: boolean
|
|
9480
|
+
ignoreDirectives?: boolean
|
|
9466
9481
|
}]
|
|
9467
9482
|
// ----- no-unused-vars -----
|
|
9468
9483
|
type NoUnusedVars = []|[(("all" | "local") | {
|
|
@@ -12557,6 +12572,7 @@ type TsNoUnusedExpressions = []|[{
|
|
|
12557
12572
|
allowTernary?: boolean
|
|
12558
12573
|
allowTaggedTemplates?: boolean
|
|
12559
12574
|
enforceForJSX?: boolean
|
|
12575
|
+
ignoreDirectives?: boolean
|
|
12560
12576
|
}]
|
|
12561
12577
|
// ----- ts/no-unused-vars -----
|
|
12562
12578
|
type TsNoUnusedVars = []|[(("all" | "local") | {
|
|
@@ -12619,6 +12635,8 @@ type TsOnlyThrowError = []|[{
|
|
|
12619
12635
|
package: string
|
|
12620
12636
|
})[]
|
|
12621
12637
|
|
|
12638
|
+
allowRethrowing?: boolean
|
|
12639
|
+
|
|
12622
12640
|
allowThrowingAny?: boolean
|
|
12623
12641
|
|
|
12624
12642
|
allowThrowingUnknown?: boolean
|
package/dist/index.d.ts
CHANGED
|
@@ -2210,7 +2210,7 @@ Backward pagination arguments
|
|
|
2210
2210
|
* Disallow identifiers from shadowing restricted names
|
|
2211
2211
|
* @see https://eslint.org/docs/latest/rules/no-shadow-restricted-names
|
|
2212
2212
|
*/
|
|
2213
|
-
'no-shadow-restricted-names'?: Linter.RuleEntry<
|
|
2213
|
+
'no-shadow-restricted-names'?: Linter.RuleEntry<NoShadowRestrictedNames>
|
|
2214
2214
|
/**
|
|
2215
2215
|
* Disallow spacing between function identifiers and their applications (deprecated)
|
|
2216
2216
|
* @see https://eslint.org/docs/latest/rules/no-spaced-func
|
|
@@ -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
|
|
@@ -9412,6 +9422,10 @@ type NoShadow = []|[{
|
|
|
9412
9422
|
allow?: string[]
|
|
9413
9423
|
ignoreOnInitialization?: boolean
|
|
9414
9424
|
}]
|
|
9425
|
+
// ----- no-shadow-restricted-names -----
|
|
9426
|
+
type NoShadowRestrictedNames = []|[{
|
|
9427
|
+
reportGlobalThis?: boolean
|
|
9428
|
+
}]
|
|
9415
9429
|
// ----- no-sync -----
|
|
9416
9430
|
type NoSync = []|[{
|
|
9417
9431
|
allowAtRootLevel?: boolean
|
|
@@ -9463,6 +9477,7 @@ type NoUnusedExpressions = []|[{
|
|
|
9463
9477
|
allowTernary?: boolean
|
|
9464
9478
|
allowTaggedTemplates?: boolean
|
|
9465
9479
|
enforceForJSX?: boolean
|
|
9480
|
+
ignoreDirectives?: boolean
|
|
9466
9481
|
}]
|
|
9467
9482
|
// ----- no-unused-vars -----
|
|
9468
9483
|
type NoUnusedVars = []|[(("all" | "local") | {
|
|
@@ -12557,6 +12572,7 @@ type TsNoUnusedExpressions = []|[{
|
|
|
12557
12572
|
allowTernary?: boolean
|
|
12558
12573
|
allowTaggedTemplates?: boolean
|
|
12559
12574
|
enforceForJSX?: boolean
|
|
12575
|
+
ignoreDirectives?: boolean
|
|
12560
12576
|
}]
|
|
12561
12577
|
// ----- ts/no-unused-vars -----
|
|
12562
12578
|
type TsNoUnusedVars = []|[(("all" | "local") | {
|
|
@@ -12619,6 +12635,8 @@ type TsOnlyThrowError = []|[{
|
|
|
12619
12635
|
package: string
|
|
12620
12636
|
})[]
|
|
12621
12637
|
|
|
12638
|
+
allowRethrowing?: boolean
|
|
12639
|
+
|
|
12622
12640
|
allowThrowingAny?: boolean
|
|
12623
12641
|
|
|
12624
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,17 +29,17 @@
|
|
|
29
29
|
"public": true,
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
|
|
32
|
-
"@eslint-react/eslint-plugin": "1.
|
|
33
|
-
"@eslint/compat": "1.2.
|
|
32
|
+
"@eslint-react/eslint-plugin": "1.49.0",
|
|
33
|
+
"@eslint/compat": "1.2.9",
|
|
34
34
|
"@eslint/css": "0.7.0",
|
|
35
|
-
"@eslint/js": "9.
|
|
35
|
+
"@eslint/js": "9.26.0",
|
|
36
36
|
"@eslint/markdown": "6.4.0",
|
|
37
37
|
"@graphql-eslint/eslint-plugin": "4.4.0",
|
|
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,24 +65,24 @@
|
|
|
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",
|
|
75
75
|
"@types/node": "22.15.3",
|
|
76
76
|
"@types/react": "19.1.2",
|
|
77
|
-
"dedent": "1.
|
|
78
|
-
"eslint": "9.
|
|
77
|
+
"dedent": "1.6.0",
|
|
78
|
+
"eslint": "9.26.0",
|
|
79
79
|
"eslint-typegen": "2.1.0",
|
|
80
80
|
"execa": "9.5.2",
|
|
81
81
|
"react": "19.1.0",
|
|
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": {
|