@2digits/eslint-config 2.13.2 → 2.13.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.cts +42 -3
- package/dist/index.d.ts +42 -3
- package/package.json +9 -9
package/dist/index.d.cts
CHANGED
|
@@ -10,7 +10,7 @@ import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
|
10
10
|
interface RuleOptions {
|
|
11
11
|
/**
|
|
12
12
|
* Enforce giving proper names to type parameters when there are two or more
|
|
13
|
-
* @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.3.
|
|
13
|
+
* @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.3.24/packages/eslint/src/rules/type-param-names.ts
|
|
14
14
|
*/
|
|
15
15
|
'@2digits/type-param-names'?: Linter.RuleEntry<[]>
|
|
16
16
|
/**
|
|
@@ -4622,7 +4622,7 @@ Backward pagination arguments
|
|
|
4622
4622
|
* Disallow using code marked as `@deprecated`
|
|
4623
4623
|
* @see https://typescript-eslint.io/rules/no-deprecated
|
|
4624
4624
|
*/
|
|
4625
|
-
'ts/no-deprecated'?: Linter.RuleEntry<
|
|
4625
|
+
'ts/no-deprecated'?: Linter.RuleEntry<TsNoDeprecated>
|
|
4626
4626
|
/**
|
|
4627
4627
|
* Disallow duplicate class members
|
|
4628
4628
|
* @see https://typescript-eslint.io/rules/no-dupe-class-members
|
|
@@ -4740,6 +4740,11 @@ Backward pagination arguments
|
|
|
4740
4740
|
* @see https://typescript-eslint.io/rules/no-misused-promises
|
|
4741
4741
|
*/
|
|
4742
4742
|
'ts/no-misused-promises'?: Linter.RuleEntry<TsNoMisusedPromises>
|
|
4743
|
+
/**
|
|
4744
|
+
* Disallow using the spread operator when it might cause unexpected behavior
|
|
4745
|
+
* @see https://typescript-eslint.io/rules/no-misused-spread
|
|
4746
|
+
*/
|
|
4747
|
+
'ts/no-misused-spread'?: Linter.RuleEntry<TsNoMisusedSpread>
|
|
4743
4748
|
/**
|
|
4744
4749
|
* Disallow enums from having both number and string members
|
|
4745
4750
|
* @see https://typescript-eslint.io/rules/no-mixed-enums
|
|
@@ -9357,6 +9362,8 @@ type TsConsistentTypeAssertions = []|[({
|
|
|
9357
9362
|
assertionStyle: "never"
|
|
9358
9363
|
} | {
|
|
9359
9364
|
|
|
9365
|
+
arrayLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
9366
|
+
|
|
9360
9367
|
assertionStyle?: ("as" | "angle-bracket")
|
|
9361
9368
|
|
|
9362
9369
|
objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
@@ -9813,6 +9820,22 @@ type TsNoConfusingVoidExpression = []|[{
|
|
|
9813
9820
|
|
|
9814
9821
|
ignoreVoidReturningFunctions?: boolean
|
|
9815
9822
|
}]
|
|
9823
|
+
// ----- ts/no-deprecated -----
|
|
9824
|
+
type TsNoDeprecated = []|[{
|
|
9825
|
+
|
|
9826
|
+
allow?: (string | {
|
|
9827
|
+
from: "file"
|
|
9828
|
+
name: (string | [string, ...(string)[]])
|
|
9829
|
+
path?: string
|
|
9830
|
+
} | {
|
|
9831
|
+
from: "lib"
|
|
9832
|
+
name: (string | [string, ...(string)[]])
|
|
9833
|
+
} | {
|
|
9834
|
+
from: "package"
|
|
9835
|
+
name: (string | [string, ...(string)[]])
|
|
9836
|
+
package: string
|
|
9837
|
+
})[]
|
|
9838
|
+
}]
|
|
9816
9839
|
// ----- ts/no-duplicate-type-constituents -----
|
|
9817
9840
|
type TsNoDuplicateTypeConstituents = []|[{
|
|
9818
9841
|
|
|
@@ -9954,6 +9977,22 @@ type TsNoMisusedPromises = []|[{
|
|
|
9954
9977
|
variables?: boolean
|
|
9955
9978
|
})
|
|
9956
9979
|
}]
|
|
9980
|
+
// ----- ts/no-misused-spread -----
|
|
9981
|
+
type TsNoMisusedSpread = []|[{
|
|
9982
|
+
|
|
9983
|
+
allow?: (string | {
|
|
9984
|
+
from: "file"
|
|
9985
|
+
name: (string | [string, ...(string)[]])
|
|
9986
|
+
path?: string
|
|
9987
|
+
} | {
|
|
9988
|
+
from: "lib"
|
|
9989
|
+
name: (string | [string, ...(string)[]])
|
|
9990
|
+
} | {
|
|
9991
|
+
from: "package"
|
|
9992
|
+
name: (string | [string, ...(string)[]])
|
|
9993
|
+
package: string
|
|
9994
|
+
})[]
|
|
9995
|
+
}]
|
|
9957
9996
|
// ----- ts/no-namespace -----
|
|
9958
9997
|
type TsNoNamespace = []|[{
|
|
9959
9998
|
|
|
@@ -10029,7 +10068,7 @@ type TsNoShadow = []|[{
|
|
|
10029
10068
|
|
|
10030
10069
|
builtinGlobals?: boolean
|
|
10031
10070
|
|
|
10032
|
-
hoist?: ("all" | "functions" | "never")
|
|
10071
|
+
hoist?: ("all" | "functions" | "functions-and-types" | "never" | "types")
|
|
10033
10072
|
|
|
10034
10073
|
ignoreFunctionTypeParameterNameValueShadow?: boolean
|
|
10035
10074
|
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
|
10
10
|
interface RuleOptions {
|
|
11
11
|
/**
|
|
12
12
|
* Enforce giving proper names to type parameters when there are two or more
|
|
13
|
-
* @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.3.
|
|
13
|
+
* @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.3.24/packages/eslint/src/rules/type-param-names.ts
|
|
14
14
|
*/
|
|
15
15
|
'@2digits/type-param-names'?: Linter.RuleEntry<[]>
|
|
16
16
|
/**
|
|
@@ -4622,7 +4622,7 @@ Backward pagination arguments
|
|
|
4622
4622
|
* Disallow using code marked as `@deprecated`
|
|
4623
4623
|
* @see https://typescript-eslint.io/rules/no-deprecated
|
|
4624
4624
|
*/
|
|
4625
|
-
'ts/no-deprecated'?: Linter.RuleEntry<
|
|
4625
|
+
'ts/no-deprecated'?: Linter.RuleEntry<TsNoDeprecated>
|
|
4626
4626
|
/**
|
|
4627
4627
|
* Disallow duplicate class members
|
|
4628
4628
|
* @see https://typescript-eslint.io/rules/no-dupe-class-members
|
|
@@ -4740,6 +4740,11 @@ Backward pagination arguments
|
|
|
4740
4740
|
* @see https://typescript-eslint.io/rules/no-misused-promises
|
|
4741
4741
|
*/
|
|
4742
4742
|
'ts/no-misused-promises'?: Linter.RuleEntry<TsNoMisusedPromises>
|
|
4743
|
+
/**
|
|
4744
|
+
* Disallow using the spread operator when it might cause unexpected behavior
|
|
4745
|
+
* @see https://typescript-eslint.io/rules/no-misused-spread
|
|
4746
|
+
*/
|
|
4747
|
+
'ts/no-misused-spread'?: Linter.RuleEntry<TsNoMisusedSpread>
|
|
4743
4748
|
/**
|
|
4744
4749
|
* Disallow enums from having both number and string members
|
|
4745
4750
|
* @see https://typescript-eslint.io/rules/no-mixed-enums
|
|
@@ -9357,6 +9362,8 @@ type TsConsistentTypeAssertions = []|[({
|
|
|
9357
9362
|
assertionStyle: "never"
|
|
9358
9363
|
} | {
|
|
9359
9364
|
|
|
9365
|
+
arrayLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
9366
|
+
|
|
9360
9367
|
assertionStyle?: ("as" | "angle-bracket")
|
|
9361
9368
|
|
|
9362
9369
|
objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
@@ -9813,6 +9820,22 @@ type TsNoConfusingVoidExpression = []|[{
|
|
|
9813
9820
|
|
|
9814
9821
|
ignoreVoidReturningFunctions?: boolean
|
|
9815
9822
|
}]
|
|
9823
|
+
// ----- ts/no-deprecated -----
|
|
9824
|
+
type TsNoDeprecated = []|[{
|
|
9825
|
+
|
|
9826
|
+
allow?: (string | {
|
|
9827
|
+
from: "file"
|
|
9828
|
+
name: (string | [string, ...(string)[]])
|
|
9829
|
+
path?: string
|
|
9830
|
+
} | {
|
|
9831
|
+
from: "lib"
|
|
9832
|
+
name: (string | [string, ...(string)[]])
|
|
9833
|
+
} | {
|
|
9834
|
+
from: "package"
|
|
9835
|
+
name: (string | [string, ...(string)[]])
|
|
9836
|
+
package: string
|
|
9837
|
+
})[]
|
|
9838
|
+
}]
|
|
9816
9839
|
// ----- ts/no-duplicate-type-constituents -----
|
|
9817
9840
|
type TsNoDuplicateTypeConstituents = []|[{
|
|
9818
9841
|
|
|
@@ -9954,6 +9977,22 @@ type TsNoMisusedPromises = []|[{
|
|
|
9954
9977
|
variables?: boolean
|
|
9955
9978
|
})
|
|
9956
9979
|
}]
|
|
9980
|
+
// ----- ts/no-misused-spread -----
|
|
9981
|
+
type TsNoMisusedSpread = []|[{
|
|
9982
|
+
|
|
9983
|
+
allow?: (string | {
|
|
9984
|
+
from: "file"
|
|
9985
|
+
name: (string | [string, ...(string)[]])
|
|
9986
|
+
path?: string
|
|
9987
|
+
} | {
|
|
9988
|
+
from: "lib"
|
|
9989
|
+
name: (string | [string, ...(string)[]])
|
|
9990
|
+
} | {
|
|
9991
|
+
from: "package"
|
|
9992
|
+
name: (string | [string, ...(string)[]])
|
|
9993
|
+
package: string
|
|
9994
|
+
})[]
|
|
9995
|
+
}]
|
|
9957
9996
|
// ----- ts/no-namespace -----
|
|
9958
9997
|
type TsNoNamespace = []|[{
|
|
9959
9998
|
|
|
@@ -10029,7 +10068,7 @@ type TsNoShadow = []|[{
|
|
|
10029
10068
|
|
|
10030
10069
|
builtinGlobals?: boolean
|
|
10031
10070
|
|
|
10032
|
-
hoist?: ("all" | "functions" | "never")
|
|
10071
|
+
hoist?: ("all" | "functions" | "functions-and-types" | "never" | "types")
|
|
10033
10072
|
|
|
10034
10073
|
ignoreFunctionTypeParameterNameValueShadow?: boolean
|
|
10035
10074
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/eslint-config",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.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
|
"type": "module",
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"@graphql-eslint/eslint-plugin": "4.3.0",
|
|
37
37
|
"@next/eslint-plugin-next": "15.1.4",
|
|
38
38
|
"@tanstack/eslint-plugin-query": "5.62.16",
|
|
39
|
-
"@typescript-eslint/parser": "8.
|
|
39
|
+
"@typescript-eslint/parser": "8.20.0",
|
|
40
40
|
"eslint-config-flat-gitignore": "1.0.0",
|
|
41
|
-
"eslint-config-prettier": "
|
|
41
|
+
"eslint-config-prettier": "10.0.1",
|
|
42
42
|
"eslint-flat-config-utils": "1.0.0",
|
|
43
43
|
"eslint-plugin-antfu": "2.7.0",
|
|
44
44
|
"eslint-plugin-drizzle": "0.2.3",
|
|
45
45
|
"eslint-plugin-jsdoc": "50.6.1",
|
|
46
46
|
"eslint-plugin-jsonc": "2.18.2",
|
|
47
47
|
"eslint-plugin-n": "17.15.1",
|
|
48
|
-
"eslint-plugin-react": "7.37.
|
|
49
|
-
"eslint-plugin-react-compiler": "19.0.0-beta-
|
|
48
|
+
"eslint-plugin-react": "7.37.4",
|
|
49
|
+
"eslint-plugin-react-compiler": "19.0.0-beta-e552027-20250112",
|
|
50
50
|
"eslint-plugin-react-hooks": "5.1.0",
|
|
51
51
|
"eslint-plugin-regexp": "2.7.0",
|
|
52
52
|
"eslint-plugin-sonarjs": "1.0.4",
|
|
@@ -59,15 +59,15 @@
|
|
|
59
59
|
"graphql-config": "5.1.3",
|
|
60
60
|
"jsonc-eslint-parser": "2.4.0",
|
|
61
61
|
"local-pkg": "1.0.0",
|
|
62
|
-
"typescript-eslint": "8.
|
|
62
|
+
"typescript-eslint": "8.20.0",
|
|
63
63
|
"@2digits/constants": "0.3.5",
|
|
64
|
-
"@2digits/eslint-plugin": "2.3.
|
|
64
|
+
"@2digits/eslint-plugin": "2.3.24"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@eslint/config-inspector": "0.7.1",
|
|
68
68
|
"@types/eslint__js": "8.42.3",
|
|
69
|
-
"@types/node": "22.10.
|
|
70
|
-
"@typescript-eslint/utils": "8.
|
|
69
|
+
"@types/node": "22.10.6",
|
|
70
|
+
"@typescript-eslint/utils": "8.20.0",
|
|
71
71
|
"eslint": "9.18.0",
|
|
72
72
|
"eslint-typegen": "1.0.0",
|
|
73
73
|
"tsup": "8.3.5",
|