@2digits/eslint-config 2.9.5 → 2.9.7
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 +25 -1
- package/dist/index.d.ts +25 -1
- package/package.json +11 -11
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.11/packages/eslint/src/rules/type-param-names.ts
|
|
14
14
|
*/
|
|
15
15
|
'@2digits/type-param-names'?: Linter.RuleEntry<[]>
|
|
16
16
|
/**
|
|
@@ -4060,6 +4060,11 @@ Backward pagination arguments
|
|
|
4060
4060
|
* @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/hierarchy-separator.md
|
|
4061
4061
|
*/
|
|
4062
4062
|
'storybook/hierarchy-separator'?: Linter.RuleEntry<[]>
|
|
4063
|
+
/**
|
|
4064
|
+
* Meta should only have inline properties
|
|
4065
|
+
* @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/meta-inline-properties.md
|
|
4066
|
+
*/
|
|
4067
|
+
'storybook/meta-inline-properties'?: Linter.RuleEntry<StorybookMetaInlineProperties>
|
|
4063
4068
|
/**
|
|
4064
4069
|
* A story should not have a redundant name property
|
|
4065
4070
|
* @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/no-redundant-story-name.md
|
|
@@ -8594,6 +8599,10 @@ type SpacedComment = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
8594
8599
|
balanced?: boolean
|
|
8595
8600
|
}
|
|
8596
8601
|
}]
|
|
8602
|
+
// ----- storybook/meta-inline-properties -----
|
|
8603
|
+
type StorybookMetaInlineProperties = []|[{
|
|
8604
|
+
csfVersion?: number
|
|
8605
|
+
}]
|
|
8597
8606
|
// ----- storybook/no-uninstalled-addons -----
|
|
8598
8607
|
type StorybookNoUninstalledAddons = []|[{
|
|
8599
8608
|
packageJsonLocation?: string
|
|
@@ -9526,6 +9535,19 @@ type TsNoVarRequires = []|[{
|
|
|
9526
9535
|
// ----- ts/only-throw-error -----
|
|
9527
9536
|
type TsOnlyThrowError = []|[{
|
|
9528
9537
|
|
|
9538
|
+
allow?: (string | {
|
|
9539
|
+
from: "file"
|
|
9540
|
+
name: (string | [string, ...(string)[]])
|
|
9541
|
+
path?: string
|
|
9542
|
+
} | {
|
|
9543
|
+
from: "lib"
|
|
9544
|
+
name: (string | [string, ...(string)[]])
|
|
9545
|
+
} | {
|
|
9546
|
+
from: "package"
|
|
9547
|
+
name: (string | [string, ...(string)[]])
|
|
9548
|
+
package: string
|
|
9549
|
+
})[]
|
|
9550
|
+
|
|
9529
9551
|
allowThrowingAny?: boolean
|
|
9530
9552
|
|
|
9531
9553
|
allowThrowingUnknown?: boolean
|
|
@@ -9579,6 +9601,8 @@ type TsPreferNullishCoalescing = []|[{
|
|
|
9579
9601
|
|
|
9580
9602
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
9581
9603
|
|
|
9604
|
+
ignoreBooleanCoercion?: boolean
|
|
9605
|
+
|
|
9582
9606
|
ignoreConditionalTests?: boolean
|
|
9583
9607
|
|
|
9584
9608
|
ignoreMixedLogicalExpressions?: 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.11/packages/eslint/src/rules/type-param-names.ts
|
|
14
14
|
*/
|
|
15
15
|
'@2digits/type-param-names'?: Linter.RuleEntry<[]>
|
|
16
16
|
/**
|
|
@@ -4060,6 +4060,11 @@ Backward pagination arguments
|
|
|
4060
4060
|
* @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/hierarchy-separator.md
|
|
4061
4061
|
*/
|
|
4062
4062
|
'storybook/hierarchy-separator'?: Linter.RuleEntry<[]>
|
|
4063
|
+
/**
|
|
4064
|
+
* Meta should only have inline properties
|
|
4065
|
+
* @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/meta-inline-properties.md
|
|
4066
|
+
*/
|
|
4067
|
+
'storybook/meta-inline-properties'?: Linter.RuleEntry<StorybookMetaInlineProperties>
|
|
4063
4068
|
/**
|
|
4064
4069
|
* A story should not have a redundant name property
|
|
4065
4070
|
* @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/no-redundant-story-name.md
|
|
@@ -8594,6 +8599,10 @@ type SpacedComment = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
8594
8599
|
balanced?: boolean
|
|
8595
8600
|
}
|
|
8596
8601
|
}]
|
|
8602
|
+
// ----- storybook/meta-inline-properties -----
|
|
8603
|
+
type StorybookMetaInlineProperties = []|[{
|
|
8604
|
+
csfVersion?: number
|
|
8605
|
+
}]
|
|
8597
8606
|
// ----- storybook/no-uninstalled-addons -----
|
|
8598
8607
|
type StorybookNoUninstalledAddons = []|[{
|
|
8599
8608
|
packageJsonLocation?: string
|
|
@@ -9526,6 +9535,19 @@ type TsNoVarRequires = []|[{
|
|
|
9526
9535
|
// ----- ts/only-throw-error -----
|
|
9527
9536
|
type TsOnlyThrowError = []|[{
|
|
9528
9537
|
|
|
9538
|
+
allow?: (string | {
|
|
9539
|
+
from: "file"
|
|
9540
|
+
name: (string | [string, ...(string)[]])
|
|
9541
|
+
path?: string
|
|
9542
|
+
} | {
|
|
9543
|
+
from: "lib"
|
|
9544
|
+
name: (string | [string, ...(string)[]])
|
|
9545
|
+
} | {
|
|
9546
|
+
from: "package"
|
|
9547
|
+
name: (string | [string, ...(string)[]])
|
|
9548
|
+
package: string
|
|
9549
|
+
})[]
|
|
9550
|
+
|
|
9529
9551
|
allowThrowingAny?: boolean
|
|
9530
9552
|
|
|
9531
9553
|
allowThrowingUnknown?: boolean
|
|
@@ -9579,6 +9601,8 @@ type TsPreferNullishCoalescing = []|[{
|
|
|
9579
9601
|
|
|
9580
9602
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
9581
9603
|
|
|
9604
|
+
ignoreBooleanCoercion?: boolean
|
|
9605
|
+
|
|
9582
9606
|
ignoreConditionalTests?: boolean
|
|
9583
9607
|
|
|
9584
9608
|
ignoreMixedLogicalExpressions?: 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.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"public": true,
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
|
|
32
32
|
"@eslint-react/eslint-plugin": "1.15.2",
|
|
33
33
|
"@eslint/compat": "1.2.2",
|
|
34
|
-
"@eslint/js": "9.
|
|
34
|
+
"@eslint/js": "9.14.0",
|
|
35
35
|
"@graphql-eslint/eslint-plugin": "3.20.1",
|
|
36
36
|
"@next/eslint-plugin-next": "15.0.2",
|
|
37
37
|
"@tanstack/eslint-plugin-query": "5.59.7",
|
|
38
|
-
"@typescript-eslint/parser": "8.
|
|
38
|
+
"@typescript-eslint/parser": "8.13.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",
|
|
@@ -47,22 +47,22 @@
|
|
|
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.11.0",
|
|
51
51
|
"eslint-plugin-tailwindcss": "3.17.5",
|
|
52
52
|
"eslint-plugin-turbo": "2.2.3",
|
|
53
53
|
"eslint-plugin-unicorn": "56.0.0",
|
|
54
54
|
"find-up": "7.0.0",
|
|
55
|
-
"globals": "15.
|
|
55
|
+
"globals": "15.12.0",
|
|
56
56
|
"local-pkg": "0.5.0",
|
|
57
|
-
"typescript-eslint": "8.
|
|
58
|
-
"@2digits/
|
|
59
|
-
"@2digits/
|
|
57
|
+
"typescript-eslint": "8.13.0",
|
|
58
|
+
"@2digits/eslint-plugin": "2.3.11",
|
|
59
|
+
"@2digits/constants": "0.3.3"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/eslint__js": "8.42.3",
|
|
63
|
-
"@types/node": "22.8.
|
|
64
|
-
"@typescript-eslint/utils": "8.
|
|
65
|
-
"eslint": "9.
|
|
63
|
+
"@types/node": "22.8.7",
|
|
64
|
+
"@typescript-eslint/utils": "8.13.0",
|
|
65
|
+
"eslint": "9.14.0",
|
|
66
66
|
"eslint-typegen": "0.3.2",
|
|
67
67
|
"tsup": "8.3.5",
|
|
68
68
|
"typescript": "5.6.3",
|