@2digits/eslint-config 2.9.1 → 2.9.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 +17 -11
- package/dist/index.d.ts +17 -11
- package/package.json +15 -15
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.8/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>
|
|
@@ -4058,11 +4060,6 @@ Backward pagination arguments
|
|
|
4058
4060
|
* @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/hierarchy-separator.md
|
|
4059
4061
|
*/
|
|
4060
4062
|
'storybook/hierarchy-separator'?: Linter.RuleEntry<[]>
|
|
4061
|
-
/**
|
|
4062
|
-
* Meta should only have inline properties
|
|
4063
|
-
* @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/meta-inline-properties.md
|
|
4064
|
-
*/
|
|
4065
|
-
'storybook/meta-inline-properties'?: Linter.RuleEntry<StorybookMetaInlineProperties>
|
|
4066
4063
|
/**
|
|
4067
4064
|
* A story should not have a redundant name property
|
|
4068
4065
|
* @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/no-redundant-story-name.md
|
|
@@ -4327,7 +4324,7 @@ Backward pagination arguments
|
|
|
4327
4324
|
*/
|
|
4328
4325
|
'ts/no-array-delete'?: Linter.RuleEntry<[]>
|
|
4329
4326
|
/**
|
|
4330
|
-
* Require `.toString()` to only be called on objects which provide useful information when stringified
|
|
4327
|
+
* Require `.toString()` and `.toLocaleString()` to only be called on objects which provide useful information when stringified
|
|
4331
4328
|
* @see https://typescript-eslint.io/rules/no-base-to-string
|
|
4332
4329
|
*/
|
|
4333
4330
|
'ts/no-base-to-string'?: Linter.RuleEntry<TsNoBaseToString>
|
|
@@ -8596,10 +8593,6 @@ type SpacedComment = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
8596
8593
|
balanced?: boolean
|
|
8597
8594
|
}
|
|
8598
8595
|
}]
|
|
8599
|
-
// ----- storybook/meta-inline-properties -----
|
|
8600
|
-
type StorybookMetaInlineProperties = []|[{
|
|
8601
|
-
csfVersion?: number
|
|
8602
|
-
}]
|
|
8603
8596
|
// ----- storybook/no-uninstalled-addons -----
|
|
8604
8597
|
type StorybookNoUninstalledAddons = []|[{
|
|
8605
8598
|
packageJsonLocation?: string
|
|
@@ -8806,9 +8799,11 @@ type TsExplicitFunctionReturnType = []|[{
|
|
|
8806
8799
|
}]
|
|
8807
8800
|
// ----- ts/explicit-member-accessibility -----
|
|
8808
8801
|
type TsExplicitMemberAccessibility = []|[{
|
|
8802
|
+
|
|
8809
8803
|
accessibility?: ("explicit" | "no-public" | "off")
|
|
8810
8804
|
|
|
8811
8805
|
ignoredMethodNames?: string[]
|
|
8806
|
+
|
|
8812
8807
|
overrides?: {
|
|
8813
8808
|
accessors?: ("explicit" | "no-public" | "off")
|
|
8814
8809
|
constructors?: ("explicit" | "no-public" | "off")
|
|
@@ -9325,9 +9320,11 @@ type TsNoMeaninglessVoidOperator = []|[{
|
|
|
9325
9320
|
}]
|
|
9326
9321
|
// ----- ts/no-misused-promises -----
|
|
9327
9322
|
type TsNoMisusedPromises = []|[{
|
|
9323
|
+
|
|
9328
9324
|
checksConditionals?: boolean
|
|
9329
9325
|
|
|
9330
9326
|
checksSpreads?: boolean
|
|
9327
|
+
|
|
9331
9328
|
checksVoidReturn?: (boolean | {
|
|
9332
9329
|
|
|
9333
9330
|
arguments?: boolean
|
|
@@ -9399,6 +9396,7 @@ type TsNoRestrictedImports = ((string | {
|
|
|
9399
9396
|
}])
|
|
9400
9397
|
// ----- ts/no-restricted-types -----
|
|
9401
9398
|
type TsNoRestrictedTypes = []|[{
|
|
9399
|
+
|
|
9402
9400
|
types?: {
|
|
9403
9401
|
[k: string]: (true | string | {
|
|
9404
9402
|
|
|
@@ -9504,6 +9502,7 @@ type TsNoUnusedVars = []|[(("all" | "local") | {
|
|
|
9504
9502
|
})]
|
|
9505
9503
|
// ----- ts/no-use-before-define -----
|
|
9506
9504
|
type TsNoUseBeforeDefine = []|[("nofunc" | {
|
|
9505
|
+
|
|
9507
9506
|
allowNamedExports?: boolean
|
|
9508
9507
|
|
|
9509
9508
|
classes?: boolean
|
|
@@ -9563,7 +9562,9 @@ type TsPreferDestructuring = []|[({
|
|
|
9563
9562
|
array?: boolean
|
|
9564
9563
|
object?: boolean
|
|
9565
9564
|
}), {
|
|
9565
|
+
|
|
9566
9566
|
enforceForDeclarationWithTypeAnnotation?: boolean
|
|
9567
|
+
|
|
9567
9568
|
enforceForRenamedProperties?: boolean
|
|
9568
9569
|
[k: string]: unknown | undefined
|
|
9569
9570
|
}]
|
|
@@ -9582,9 +9583,13 @@ type TsPreferNullishCoalescing = []|[{
|
|
|
9582
9583
|
ignoreMixedLogicalExpressions?: boolean
|
|
9583
9584
|
|
|
9584
9585
|
ignorePrimitives?: ({
|
|
9586
|
+
|
|
9585
9587
|
bigint?: boolean
|
|
9588
|
+
|
|
9586
9589
|
boolean?: boolean
|
|
9590
|
+
|
|
9587
9591
|
number?: boolean
|
|
9592
|
+
|
|
9588
9593
|
string?: boolean
|
|
9589
9594
|
[k: string]: unknown | undefined
|
|
9590
9595
|
} | true)
|
|
@@ -9741,6 +9746,7 @@ type TsStrictBooleanExpressions = []|[{
|
|
|
9741
9746
|
allowNullableString?: boolean
|
|
9742
9747
|
|
|
9743
9748
|
allowNumber?: boolean
|
|
9749
|
+
|
|
9744
9750
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
9745
9751
|
|
|
9746
9752
|
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.8/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>
|
|
@@ -4058,11 +4060,6 @@ Backward pagination arguments
|
|
|
4058
4060
|
* @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/hierarchy-separator.md
|
|
4059
4061
|
*/
|
|
4060
4062
|
'storybook/hierarchy-separator'?: Linter.RuleEntry<[]>
|
|
4061
|
-
/**
|
|
4062
|
-
* Meta should only have inline properties
|
|
4063
|
-
* @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/meta-inline-properties.md
|
|
4064
|
-
*/
|
|
4065
|
-
'storybook/meta-inline-properties'?: Linter.RuleEntry<StorybookMetaInlineProperties>
|
|
4066
4063
|
/**
|
|
4067
4064
|
* A story should not have a redundant name property
|
|
4068
4065
|
* @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/no-redundant-story-name.md
|
|
@@ -4327,7 +4324,7 @@ Backward pagination arguments
|
|
|
4327
4324
|
*/
|
|
4328
4325
|
'ts/no-array-delete'?: Linter.RuleEntry<[]>
|
|
4329
4326
|
/**
|
|
4330
|
-
* Require `.toString()` to only be called on objects which provide useful information when stringified
|
|
4327
|
+
* Require `.toString()` and `.toLocaleString()` to only be called on objects which provide useful information when stringified
|
|
4331
4328
|
* @see https://typescript-eslint.io/rules/no-base-to-string
|
|
4332
4329
|
*/
|
|
4333
4330
|
'ts/no-base-to-string'?: Linter.RuleEntry<TsNoBaseToString>
|
|
@@ -8596,10 +8593,6 @@ type SpacedComment = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
8596
8593
|
balanced?: boolean
|
|
8597
8594
|
}
|
|
8598
8595
|
}]
|
|
8599
|
-
// ----- storybook/meta-inline-properties -----
|
|
8600
|
-
type StorybookMetaInlineProperties = []|[{
|
|
8601
|
-
csfVersion?: number
|
|
8602
|
-
}]
|
|
8603
8596
|
// ----- storybook/no-uninstalled-addons -----
|
|
8604
8597
|
type StorybookNoUninstalledAddons = []|[{
|
|
8605
8598
|
packageJsonLocation?: string
|
|
@@ -8806,9 +8799,11 @@ type TsExplicitFunctionReturnType = []|[{
|
|
|
8806
8799
|
}]
|
|
8807
8800
|
// ----- ts/explicit-member-accessibility -----
|
|
8808
8801
|
type TsExplicitMemberAccessibility = []|[{
|
|
8802
|
+
|
|
8809
8803
|
accessibility?: ("explicit" | "no-public" | "off")
|
|
8810
8804
|
|
|
8811
8805
|
ignoredMethodNames?: string[]
|
|
8806
|
+
|
|
8812
8807
|
overrides?: {
|
|
8813
8808
|
accessors?: ("explicit" | "no-public" | "off")
|
|
8814
8809
|
constructors?: ("explicit" | "no-public" | "off")
|
|
@@ -9325,9 +9320,11 @@ type TsNoMeaninglessVoidOperator = []|[{
|
|
|
9325
9320
|
}]
|
|
9326
9321
|
// ----- ts/no-misused-promises -----
|
|
9327
9322
|
type TsNoMisusedPromises = []|[{
|
|
9323
|
+
|
|
9328
9324
|
checksConditionals?: boolean
|
|
9329
9325
|
|
|
9330
9326
|
checksSpreads?: boolean
|
|
9327
|
+
|
|
9331
9328
|
checksVoidReturn?: (boolean | {
|
|
9332
9329
|
|
|
9333
9330
|
arguments?: boolean
|
|
@@ -9399,6 +9396,7 @@ type TsNoRestrictedImports = ((string | {
|
|
|
9399
9396
|
}])
|
|
9400
9397
|
// ----- ts/no-restricted-types -----
|
|
9401
9398
|
type TsNoRestrictedTypes = []|[{
|
|
9399
|
+
|
|
9402
9400
|
types?: {
|
|
9403
9401
|
[k: string]: (true | string | {
|
|
9404
9402
|
|
|
@@ -9504,6 +9502,7 @@ type TsNoUnusedVars = []|[(("all" | "local") | {
|
|
|
9504
9502
|
})]
|
|
9505
9503
|
// ----- ts/no-use-before-define -----
|
|
9506
9504
|
type TsNoUseBeforeDefine = []|[("nofunc" | {
|
|
9505
|
+
|
|
9507
9506
|
allowNamedExports?: boolean
|
|
9508
9507
|
|
|
9509
9508
|
classes?: boolean
|
|
@@ -9563,7 +9562,9 @@ type TsPreferDestructuring = []|[({
|
|
|
9563
9562
|
array?: boolean
|
|
9564
9563
|
object?: boolean
|
|
9565
9564
|
}), {
|
|
9565
|
+
|
|
9566
9566
|
enforceForDeclarationWithTypeAnnotation?: boolean
|
|
9567
|
+
|
|
9567
9568
|
enforceForRenamedProperties?: boolean
|
|
9568
9569
|
[k: string]: unknown | undefined
|
|
9569
9570
|
}]
|
|
@@ -9582,9 +9583,13 @@ type TsPreferNullishCoalescing = []|[{
|
|
|
9582
9583
|
ignoreMixedLogicalExpressions?: boolean
|
|
9583
9584
|
|
|
9584
9585
|
ignorePrimitives?: ({
|
|
9586
|
+
|
|
9585
9587
|
bigint?: boolean
|
|
9588
|
+
|
|
9586
9589
|
boolean?: boolean
|
|
9590
|
+
|
|
9587
9591
|
number?: boolean
|
|
9592
|
+
|
|
9588
9593
|
string?: boolean
|
|
9589
9594
|
[k: string]: unknown | undefined
|
|
9590
9595
|
} | true)
|
|
@@ -9741,6 +9746,7 @@ type TsStrictBooleanExpressions = []|[{
|
|
|
9741
9746
|
allowNullableString?: boolean
|
|
9742
9747
|
|
|
9743
9748
|
allowNumber?: boolean
|
|
9749
|
+
|
|
9744
9750
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
9745
9751
|
|
|
9746
9752
|
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.3",
|
|
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
|
-
"@next/eslint-plugin-next": "
|
|
36
|
+
"@next/eslint-plugin-next": "15.0.0",
|
|
37
37
|
"@tanstack/eslint-plugin-query": "5.59.7",
|
|
38
|
-
"@typescript-eslint/parser": "8.
|
|
38
|
+
"@typescript-eslint/parser": "8.11.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
|
-
"eslint-plugin-react": "7.37.
|
|
46
|
-
"eslint-plugin-react-compiler": "
|
|
45
|
+
"eslint-plugin-react": "7.37.2",
|
|
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
|
-
"eslint-plugin-storybook": "0.
|
|
50
|
+
"eslint-plugin-storybook": "0.10.1",
|
|
51
51
|
"eslint-plugin-tailwindcss": "3.17.5",
|
|
52
|
-
"eslint-plugin-turbo": "2.
|
|
52
|
+
"eslint-plugin-turbo": "2.2.3",
|
|
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.11.0",
|
|
58
58
|
"@2digits/constants": "0.3.2",
|
|
59
|
-
"@2digits/eslint-plugin": "2.3.
|
|
59
|
+
"@2digits/eslint-plugin": "2.3.8"
|
|
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.14",
|
|
64
|
+
"@typescript-eslint/utils": "8.11.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",
|