@2digits/eslint-config 4.10.0 → 4.10.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.mts +22 -1
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -6592,7 +6592,7 @@ interface RuleOptions {
|
|
|
6592
6592
|
* Disallow member access on a value with type `any`
|
|
6593
6593
|
* @see https://typescript-eslint.io/rules/no-unsafe-member-access
|
|
6594
6594
|
*/
|
|
6595
|
-
'ts/no-unsafe-member-access'?: Linter.RuleEntry<
|
|
6595
|
+
'ts/no-unsafe-member-access'?: Linter.RuleEntry<TsNoUnsafeMemberAccess>;
|
|
6596
6596
|
/**
|
|
6597
6597
|
* Disallow returning a value with type `any` from a function
|
|
6598
6598
|
* @see https://typescript-eslint.io/rules/no-unsafe-return
|
|
@@ -8785,13 +8785,29 @@ type JsdocTextEscaping = [] | [{
|
|
|
8785
8785
|
// ----- jsdoc/type-formatting -----
|
|
8786
8786
|
type JsdocTypeFormatting = [] | [{
|
|
8787
8787
|
arrayBrackets?: ("angle" | "square");
|
|
8788
|
+
arrowFunctionPostReturnMarkerSpacing?: string;
|
|
8789
|
+
arrowFunctionPreReturnMarkerSpacing?: string;
|
|
8788
8790
|
enableFixer?: boolean;
|
|
8791
|
+
functionOrClassParameterSpacing?: string;
|
|
8792
|
+
functionOrClassPostGenericSpacing?: string;
|
|
8793
|
+
functionOrClassPostReturnMarkerSpacing?: string;
|
|
8794
|
+
functionOrClassPreReturnMarkerSpacing?: string;
|
|
8795
|
+
functionOrClassTypeParameterSpacing?: string;
|
|
8796
|
+
genericAndTupleElementSpacing?: string;
|
|
8789
8797
|
genericDot?: boolean;
|
|
8798
|
+
keyValuePostColonSpacing?: string;
|
|
8799
|
+
keyValuePostKeySpacing?: string;
|
|
8800
|
+
keyValuePostOptionalSpacing?: string;
|
|
8801
|
+
keyValuePostVariadicSpacing?: string;
|
|
8802
|
+
methodQuotes?: ("double" | "single");
|
|
8790
8803
|
objectFieldIndent?: string;
|
|
8791
8804
|
objectFieldQuote?: ("double" | "single" | null);
|
|
8792
8805
|
objectFieldSeparator?: ("comma" | "comma-and-linebreak" | "linebreak" | "semicolon" | "semicolon-and-linebreak");
|
|
8793
8806
|
objectFieldSeparatorOptionalLinebreak?: boolean;
|
|
8794
8807
|
objectFieldSeparatorTrailingPunctuation?: boolean;
|
|
8808
|
+
parameterDefaultValueSpacing?: string;
|
|
8809
|
+
postMethodNameSpacing?: string;
|
|
8810
|
+
postNewSpacing?: string;
|
|
8795
8811
|
separatorForSingleObjectField?: boolean;
|
|
8796
8812
|
stringQuotes?: ("double" | "single");
|
|
8797
8813
|
typeBracketSpacing?: string;
|
|
@@ -12964,6 +12980,10 @@ type TsNoUnnecessaryTypeAssertion = [] | [{
|
|
|
12964
12980
|
checkLiteralConstAssertions?: boolean;
|
|
12965
12981
|
typesToIgnore?: string[];
|
|
12966
12982
|
}];
|
|
12983
|
+
// ----- ts/no-unsafe-member-access -----
|
|
12984
|
+
type TsNoUnsafeMemberAccess = [] | [{
|
|
12985
|
+
allowOptionalChaining?: boolean;
|
|
12986
|
+
}];
|
|
12967
12987
|
// ----- ts/no-unused-expressions -----
|
|
12968
12988
|
type TsNoUnusedExpressions = [] | [{
|
|
12969
12989
|
allowShortCircuit?: boolean;
|
|
@@ -12981,6 +13001,7 @@ type TsNoUnusedVars = [] | [(("all" | "local") | {
|
|
|
12981
13001
|
destructuredArrayIgnorePattern?: string;
|
|
12982
13002
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
12983
13003
|
ignoreRestSiblings?: boolean;
|
|
13004
|
+
ignoreUsingDeclarations?: boolean;
|
|
12984
13005
|
reportUsedIgnorePattern?: boolean;
|
|
12985
13006
|
vars?: ("all" | "local");
|
|
12986
13007
|
varsIgnorePattern?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/eslint-config",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.2",
|
|
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,16 +29,16 @@
|
|
|
29
29
|
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
|
|
30
30
|
"@eslint-react/eslint-plugin": "2.0.6",
|
|
31
31
|
"@eslint/compat": "1.4.0",
|
|
32
|
-
"@eslint/css": "0.
|
|
32
|
+
"@eslint/css": "0.12.0",
|
|
33
33
|
"@eslint/js": "9.37.0",
|
|
34
|
-
"@eslint/markdown": "7.
|
|
34
|
+
"@eslint/markdown": "7.4.0",
|
|
35
35
|
"@graphql-eslint/eslint-plugin": "4.4.0",
|
|
36
36
|
"@next/eslint-plugin-next": "15.5.4",
|
|
37
37
|
"@stylistic/eslint-plugin": "5.4.0",
|
|
38
38
|
"@tanstack/eslint-plugin-query": "5.91.0",
|
|
39
39
|
"@tanstack/eslint-plugin-router": "1.132.31",
|
|
40
|
-
"@typescript-eslint/parser": "8.
|
|
41
|
-
"@typescript-eslint/utils": "8.
|
|
40
|
+
"@typescript-eslint/parser": "8.46.0",
|
|
41
|
+
"@typescript-eslint/utils": "8.46.0",
|
|
42
42
|
"empathic": "2.0.0",
|
|
43
43
|
"eslint-config-flat-gitignore": "2.1.0",
|
|
44
44
|
"eslint-config-prettier": "10.1.8",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"eslint-plugin-depend": "1.3.1",
|
|
50
50
|
"eslint-plugin-drizzle": "0.2.3",
|
|
51
51
|
"eslint-plugin-github-action": "0.0.16",
|
|
52
|
-
"eslint-plugin-jsdoc": "
|
|
52
|
+
"eslint-plugin-jsdoc": "61.0.1",
|
|
53
53
|
"eslint-plugin-jsonc": "2.21.0",
|
|
54
54
|
"eslint-plugin-n": "17.23.1",
|
|
55
55
|
"eslint-plugin-pnpm": "1.2.0",
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
"local-pkg": "1.1.2",
|
|
69
69
|
"pkg-types": "2.3.0",
|
|
70
70
|
"tailwind-csstree": "0.1.4",
|
|
71
|
-
"typescript-eslint": "8.
|
|
71
|
+
"typescript-eslint": "8.46.0",
|
|
72
72
|
"yaml-eslint-parser": "1.3.0",
|
|
73
73
|
"@2digits/constants": "1.1.10",
|
|
74
|
-
"@2digits/eslint-plugin": "3.1.
|
|
74
|
+
"@2digits/eslint-plugin": "3.1.26"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@eslint/config-inspector": "1.3.0",
|
|
78
|
-
"@types/react": "19.2.
|
|
78
|
+
"@types/react": "19.2.2",
|
|
79
79
|
"dedent": "1.7.0",
|
|
80
80
|
"eslint": "9.37.0",
|
|
81
81
|
"eslint-typegen": "2.3.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"tsdown": "0.15.6",
|
|
86
86
|
"typescript": "5.9.3",
|
|
87
87
|
"vitest": "3.2.4",
|
|
88
|
-
"@2digits/tsconfig": "0.8.
|
|
88
|
+
"@2digits/tsconfig": "0.8.4"
|
|
89
89
|
},
|
|
90
90
|
"scripts": {
|
|
91
91
|
"build": "tsdown --minify --config-loader unconfig",
|