@2digits/eslint-config 2.9.1 → 2.9.2
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 +16 -1
- package/dist/index.d.ts +16 -1
- package/package.json +12 -12
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.7/packages/eslint/src/rules/type-param-names.ts
|
|
14
14
|
*/
|
|
15
15
|
'@2digits/type-param-names'?: Linter.RuleEntry<[]>
|
|
16
16
|
/**
|
|
@@ -916,6 +916,7 @@ Backward pagination arguments
|
|
|
916
916
|
*/
|
|
917
917
|
'jsdoc/no-missing-syntax'?: Linter.RuleEntry<JsdocNoMissingSyntax>
|
|
918
918
|
/**
|
|
919
|
+
* Prevents use of multiple asterisks at the beginning of lines.
|
|
919
920
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-multi-asterisks.md#repos-sticky-header
|
|
920
921
|
*/
|
|
921
922
|
'jsdoc/no-multi-asterisks'?: Linter.RuleEntry<JsdocNoMultiAsterisks>
|
|
@@ -1060,6 +1061,7 @@ Backward pagination arguments
|
|
|
1060
1061
|
*/
|
|
1061
1062
|
'jsdoc/tag-lines'?: Linter.RuleEntry<JsdocTagLines>
|
|
1062
1063
|
/**
|
|
1064
|
+
* Auto-escape certain characters that are input within block and tag descriptions.
|
|
1063
1065
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/text-escaping.md#repos-sticky-header
|
|
1064
1066
|
*/
|
|
1065
1067
|
'jsdoc/text-escaping'?: Linter.RuleEntry<JsdocTextEscaping>
|
|
@@ -8806,9 +8808,11 @@ type TsExplicitFunctionReturnType = []|[{
|
|
|
8806
8808
|
}]
|
|
8807
8809
|
// ----- ts/explicit-member-accessibility -----
|
|
8808
8810
|
type TsExplicitMemberAccessibility = []|[{
|
|
8811
|
+
|
|
8809
8812
|
accessibility?: ("explicit" | "no-public" | "off")
|
|
8810
8813
|
|
|
8811
8814
|
ignoredMethodNames?: string[]
|
|
8815
|
+
|
|
8812
8816
|
overrides?: {
|
|
8813
8817
|
accessors?: ("explicit" | "no-public" | "off")
|
|
8814
8818
|
constructors?: ("explicit" | "no-public" | "off")
|
|
@@ -9325,9 +9329,11 @@ type TsNoMeaninglessVoidOperator = []|[{
|
|
|
9325
9329
|
}]
|
|
9326
9330
|
// ----- ts/no-misused-promises -----
|
|
9327
9331
|
type TsNoMisusedPromises = []|[{
|
|
9332
|
+
|
|
9328
9333
|
checksConditionals?: boolean
|
|
9329
9334
|
|
|
9330
9335
|
checksSpreads?: boolean
|
|
9336
|
+
|
|
9331
9337
|
checksVoidReturn?: (boolean | {
|
|
9332
9338
|
|
|
9333
9339
|
arguments?: boolean
|
|
@@ -9399,6 +9405,7 @@ type TsNoRestrictedImports = ((string | {
|
|
|
9399
9405
|
}])
|
|
9400
9406
|
// ----- ts/no-restricted-types -----
|
|
9401
9407
|
type TsNoRestrictedTypes = []|[{
|
|
9408
|
+
|
|
9402
9409
|
types?: {
|
|
9403
9410
|
[k: string]: (true | string | {
|
|
9404
9411
|
|
|
@@ -9504,6 +9511,7 @@ type TsNoUnusedVars = []|[(("all" | "local") | {
|
|
|
9504
9511
|
})]
|
|
9505
9512
|
// ----- ts/no-use-before-define -----
|
|
9506
9513
|
type TsNoUseBeforeDefine = []|[("nofunc" | {
|
|
9514
|
+
|
|
9507
9515
|
allowNamedExports?: boolean
|
|
9508
9516
|
|
|
9509
9517
|
classes?: boolean
|
|
@@ -9563,7 +9571,9 @@ type TsPreferDestructuring = []|[({
|
|
|
9563
9571
|
array?: boolean
|
|
9564
9572
|
object?: boolean
|
|
9565
9573
|
}), {
|
|
9574
|
+
|
|
9566
9575
|
enforceForDeclarationWithTypeAnnotation?: boolean
|
|
9576
|
+
|
|
9567
9577
|
enforceForRenamedProperties?: boolean
|
|
9568
9578
|
[k: string]: unknown | undefined
|
|
9569
9579
|
}]
|
|
@@ -9582,9 +9592,13 @@ type TsPreferNullishCoalescing = []|[{
|
|
|
9582
9592
|
ignoreMixedLogicalExpressions?: boolean
|
|
9583
9593
|
|
|
9584
9594
|
ignorePrimitives?: ({
|
|
9595
|
+
|
|
9585
9596
|
bigint?: boolean
|
|
9597
|
+
|
|
9586
9598
|
boolean?: boolean
|
|
9599
|
+
|
|
9587
9600
|
number?: boolean
|
|
9601
|
+
|
|
9588
9602
|
string?: boolean
|
|
9589
9603
|
[k: string]: unknown | undefined
|
|
9590
9604
|
} | true)
|
|
@@ -9741,6 +9755,7 @@ type TsStrictBooleanExpressions = []|[{
|
|
|
9741
9755
|
allowNullableString?: boolean
|
|
9742
9756
|
|
|
9743
9757
|
allowNumber?: boolean
|
|
9758
|
+
|
|
9744
9759
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
9745
9760
|
|
|
9746
9761
|
allowString?: boolean
|
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.7/packages/eslint/src/rules/type-param-names.ts
|
|
14
14
|
*/
|
|
15
15
|
'@2digits/type-param-names'?: Linter.RuleEntry<[]>
|
|
16
16
|
/**
|
|
@@ -916,6 +916,7 @@ Backward pagination arguments
|
|
|
916
916
|
*/
|
|
917
917
|
'jsdoc/no-missing-syntax'?: Linter.RuleEntry<JsdocNoMissingSyntax>
|
|
918
918
|
/**
|
|
919
|
+
* Prevents use of multiple asterisks at the beginning of lines.
|
|
919
920
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-multi-asterisks.md#repos-sticky-header
|
|
920
921
|
*/
|
|
921
922
|
'jsdoc/no-multi-asterisks'?: Linter.RuleEntry<JsdocNoMultiAsterisks>
|
|
@@ -1060,6 +1061,7 @@ Backward pagination arguments
|
|
|
1060
1061
|
*/
|
|
1061
1062
|
'jsdoc/tag-lines'?: Linter.RuleEntry<JsdocTagLines>
|
|
1062
1063
|
/**
|
|
1064
|
+
* Auto-escape certain characters that are input within block and tag descriptions.
|
|
1063
1065
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/text-escaping.md#repos-sticky-header
|
|
1064
1066
|
*/
|
|
1065
1067
|
'jsdoc/text-escaping'?: Linter.RuleEntry<JsdocTextEscaping>
|
|
@@ -8806,9 +8808,11 @@ type TsExplicitFunctionReturnType = []|[{
|
|
|
8806
8808
|
}]
|
|
8807
8809
|
// ----- ts/explicit-member-accessibility -----
|
|
8808
8810
|
type TsExplicitMemberAccessibility = []|[{
|
|
8811
|
+
|
|
8809
8812
|
accessibility?: ("explicit" | "no-public" | "off")
|
|
8810
8813
|
|
|
8811
8814
|
ignoredMethodNames?: string[]
|
|
8815
|
+
|
|
8812
8816
|
overrides?: {
|
|
8813
8817
|
accessors?: ("explicit" | "no-public" | "off")
|
|
8814
8818
|
constructors?: ("explicit" | "no-public" | "off")
|
|
@@ -9325,9 +9329,11 @@ type TsNoMeaninglessVoidOperator = []|[{
|
|
|
9325
9329
|
}]
|
|
9326
9330
|
// ----- ts/no-misused-promises -----
|
|
9327
9331
|
type TsNoMisusedPromises = []|[{
|
|
9332
|
+
|
|
9328
9333
|
checksConditionals?: boolean
|
|
9329
9334
|
|
|
9330
9335
|
checksSpreads?: boolean
|
|
9336
|
+
|
|
9331
9337
|
checksVoidReturn?: (boolean | {
|
|
9332
9338
|
|
|
9333
9339
|
arguments?: boolean
|
|
@@ -9399,6 +9405,7 @@ type TsNoRestrictedImports = ((string | {
|
|
|
9399
9405
|
}])
|
|
9400
9406
|
// ----- ts/no-restricted-types -----
|
|
9401
9407
|
type TsNoRestrictedTypes = []|[{
|
|
9408
|
+
|
|
9402
9409
|
types?: {
|
|
9403
9410
|
[k: string]: (true | string | {
|
|
9404
9411
|
|
|
@@ -9504,6 +9511,7 @@ type TsNoUnusedVars = []|[(("all" | "local") | {
|
|
|
9504
9511
|
})]
|
|
9505
9512
|
// ----- ts/no-use-before-define -----
|
|
9506
9513
|
type TsNoUseBeforeDefine = []|[("nofunc" | {
|
|
9514
|
+
|
|
9507
9515
|
allowNamedExports?: boolean
|
|
9508
9516
|
|
|
9509
9517
|
classes?: boolean
|
|
@@ -9563,7 +9571,9 @@ type TsPreferDestructuring = []|[({
|
|
|
9563
9571
|
array?: boolean
|
|
9564
9572
|
object?: boolean
|
|
9565
9573
|
}), {
|
|
9574
|
+
|
|
9566
9575
|
enforceForDeclarationWithTypeAnnotation?: boolean
|
|
9576
|
+
|
|
9567
9577
|
enforceForRenamedProperties?: boolean
|
|
9568
9578
|
[k: string]: unknown | undefined
|
|
9569
9579
|
}]
|
|
@@ -9582,9 +9592,13 @@ type TsPreferNullishCoalescing = []|[{
|
|
|
9582
9592
|
ignoreMixedLogicalExpressions?: boolean
|
|
9583
9593
|
|
|
9584
9594
|
ignorePrimitives?: ({
|
|
9595
|
+
|
|
9585
9596
|
bigint?: boolean
|
|
9597
|
+
|
|
9586
9598
|
boolean?: boolean
|
|
9599
|
+
|
|
9587
9600
|
number?: boolean
|
|
9601
|
+
|
|
9588
9602
|
string?: boolean
|
|
9589
9603
|
[k: string]: unknown | undefined
|
|
9590
9604
|
} | true)
|
|
@@ -9741,6 +9755,7 @@ type TsStrictBooleanExpressions = []|[{
|
|
|
9741
9755
|
allowNullableString?: boolean
|
|
9742
9756
|
|
|
9743
9757
|
allowNumber?: boolean
|
|
9758
|
+
|
|
9744
9759
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
9745
9760
|
|
|
9746
9761
|
allowString?: boolean
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/eslint-config",
|
|
3
3
|
"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.",
|
|
4
|
-
"version": "2.9.
|
|
4
|
+
"version": "2.9.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"public": true,
|
|
@@ -30,39 +30,39 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@eslint-community/eslint-plugin-eslint-comments": "4.4.0",
|
|
32
32
|
"@eslint-react/eslint-plugin": "1.15.0",
|
|
33
|
-
"@eslint/compat": "1.2.
|
|
34
|
-
"@eslint/js": "9.
|
|
33
|
+
"@eslint/compat": "1.2.1",
|
|
34
|
+
"@eslint/js": "9.13.0",
|
|
35
35
|
"@graphql-eslint/eslint-plugin": "3.20.1",
|
|
36
36
|
"@next/eslint-plugin-next": "14.2.15",
|
|
37
37
|
"@tanstack/eslint-plugin-query": "5.59.7",
|
|
38
|
-
"@typescript-eslint/parser": "8.
|
|
38
|
+
"@typescript-eslint/parser": "8.10.0",
|
|
39
39
|
"eslint-config-flat-gitignore": "0.3.0",
|
|
40
40
|
"eslint-config-prettier": "9.1.0",
|
|
41
41
|
"eslint-flat-config-utils": "0.4.0",
|
|
42
42
|
"eslint-plugin-antfu": "2.7.0",
|
|
43
|
-
"eslint-plugin-jsdoc": "50.4.
|
|
43
|
+
"eslint-plugin-jsdoc": "50.4.3",
|
|
44
44
|
"eslint-plugin-n": "17.11.1",
|
|
45
45
|
"eslint-plugin-react": "7.37.1",
|
|
46
|
-
"eslint-plugin-react-compiler": "
|
|
46
|
+
"eslint-plugin-react-compiler": "19.0.0-beta-9ee70a1-20241017",
|
|
47
47
|
"eslint-plugin-react-hooks": "5.0.0",
|
|
48
48
|
"eslint-plugin-regexp": "2.6.0",
|
|
49
49
|
"eslint-plugin-sonarjs": "1.0.4",
|
|
50
50
|
"eslint-plugin-storybook": "0.9.0",
|
|
51
51
|
"eslint-plugin-tailwindcss": "3.17.5",
|
|
52
|
-
"eslint-plugin-turbo": "2.1
|
|
52
|
+
"eslint-plugin-turbo": "2.2.1",
|
|
53
53
|
"eslint-plugin-unicorn": "56.0.0",
|
|
54
54
|
"find-up": "7.0.0",
|
|
55
55
|
"globals": "15.11.0",
|
|
56
56
|
"local-pkg": "0.5.0",
|
|
57
|
-
"typescript-eslint": "8.
|
|
57
|
+
"typescript-eslint": "8.10.0",
|
|
58
58
|
"@2digits/constants": "0.3.2",
|
|
59
|
-
"@2digits/eslint-plugin": "2.3.
|
|
59
|
+
"@2digits/eslint-plugin": "2.3.7"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/eslint__js": "8.42.3",
|
|
63
|
-
"@types/node": "20.16.
|
|
64
|
-
"@typescript-eslint/utils": "8.
|
|
65
|
-
"eslint": "9.
|
|
63
|
+
"@types/node": "20.16.13",
|
|
64
|
+
"@typescript-eslint/utils": "8.10.0",
|
|
65
|
+
"eslint": "9.13.0",
|
|
66
66
|
"eslint-typegen": "0.3.2",
|
|
67
67
|
"tsup": "8.3.0",
|
|
68
68
|
"typescript": "5.6.3",
|