@2digits/eslint-config 4.4.5 → 4.4.6
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 +5 -7
- package/dist/index.d.ts +5 -7
- package/package.json +11 -11
package/dist/index.d.mts
CHANGED
|
@@ -9157,7 +9157,7 @@ type NoEmpty = []|[{
|
|
|
9157
9157
|
}]
|
|
9158
9158
|
// ----- no-empty-function -----
|
|
9159
9159
|
type NoEmptyFunction = []|[{
|
|
9160
|
-
allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "asyncFunctions" | "asyncMethods")[]
|
|
9160
|
+
allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "asyncFunctions" | "asyncMethods" | "privateConstructors" | "protectedConstructors" | "decoratedFunctions" | "overrideMethods")[]
|
|
9161
9161
|
}]
|
|
9162
9162
|
// ----- no-empty-pattern -----
|
|
9163
9163
|
type NoEmptyPattern = []|[{
|
|
@@ -9359,13 +9359,9 @@ type NoRestrictedModules = ((string | {
|
|
|
9359
9359
|
}[])
|
|
9360
9360
|
// ----- no-restricted-properties -----
|
|
9361
9361
|
type NoRestrictedProperties = ({
|
|
9362
|
-
|
|
9363
|
-
property?: string
|
|
9364
|
-
message?: string
|
|
9362
|
+
[k: string]: unknown | undefined
|
|
9365
9363
|
} | {
|
|
9366
|
-
|
|
9367
|
-
property: string
|
|
9368
|
-
message?: string
|
|
9364
|
+
[k: string]: unknown | undefined
|
|
9369
9365
|
})[]
|
|
9370
9366
|
// ----- no-restricted-syntax -----
|
|
9371
9367
|
type NoRestrictedSyntax = (string | {
|
|
@@ -12524,6 +12520,8 @@ type TsNoUnnecessaryCondition = []|[{
|
|
|
12524
12520
|
// ----- ts/no-unnecessary-type-assertion -----
|
|
12525
12521
|
type TsNoUnnecessaryTypeAssertion = []|[{
|
|
12526
12522
|
|
|
12523
|
+
checkLiteralConstAssertions?: boolean
|
|
12524
|
+
|
|
12527
12525
|
typesToIgnore?: string[]
|
|
12528
12526
|
}]
|
|
12529
12527
|
// ----- ts/no-unused-expressions -----
|
package/dist/index.d.ts
CHANGED
|
@@ -9157,7 +9157,7 @@ type NoEmpty = []|[{
|
|
|
9157
9157
|
}]
|
|
9158
9158
|
// ----- no-empty-function -----
|
|
9159
9159
|
type NoEmptyFunction = []|[{
|
|
9160
|
-
allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "asyncFunctions" | "asyncMethods")[]
|
|
9160
|
+
allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "asyncFunctions" | "asyncMethods" | "privateConstructors" | "protectedConstructors" | "decoratedFunctions" | "overrideMethods")[]
|
|
9161
9161
|
}]
|
|
9162
9162
|
// ----- no-empty-pattern -----
|
|
9163
9163
|
type NoEmptyPattern = []|[{
|
|
@@ -9359,13 +9359,9 @@ type NoRestrictedModules = ((string | {
|
|
|
9359
9359
|
}[])
|
|
9360
9360
|
// ----- no-restricted-properties -----
|
|
9361
9361
|
type NoRestrictedProperties = ({
|
|
9362
|
-
|
|
9363
|
-
property?: string
|
|
9364
|
-
message?: string
|
|
9362
|
+
[k: string]: unknown | undefined
|
|
9365
9363
|
} | {
|
|
9366
|
-
|
|
9367
|
-
property: string
|
|
9368
|
-
message?: string
|
|
9364
|
+
[k: string]: unknown | undefined
|
|
9369
9365
|
})[]
|
|
9370
9366
|
// ----- no-restricted-syntax -----
|
|
9371
9367
|
type NoRestrictedSyntax = (string | {
|
|
@@ -12524,6 +12520,8 @@ type TsNoUnnecessaryCondition = []|[{
|
|
|
12524
12520
|
// ----- ts/no-unnecessary-type-assertion -----
|
|
12525
12521
|
type TsNoUnnecessaryTypeAssertion = []|[{
|
|
12526
12522
|
|
|
12523
|
+
checkLiteralConstAssertions?: boolean
|
|
12524
|
+
|
|
12527
12525
|
typesToIgnore?: string[]
|
|
12528
12526
|
}]
|
|
12529
12527
|
// ----- ts/no-unused-expressions -----
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/eslint-config",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.6",
|
|
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,17 +29,17 @@
|
|
|
29
29
|
"public": true,
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
|
|
32
|
-
"@eslint-react/eslint-plugin": "1.48.
|
|
32
|
+
"@eslint-react/eslint-plugin": "1.48.4",
|
|
33
33
|
"@eslint/compat": "1.2.8",
|
|
34
34
|
"@eslint/css": "0.7.0",
|
|
35
|
-
"@eslint/js": "9.
|
|
35
|
+
"@eslint/js": "9.25.1",
|
|
36
36
|
"@eslint/markdown": "6.4.0",
|
|
37
37
|
"@graphql-eslint/eslint-plugin": "4.4.0",
|
|
38
38
|
"@next/eslint-plugin-next": "15.3.1",
|
|
39
39
|
"@stylistic/eslint-plugin": "4.2.0",
|
|
40
40
|
"@tanstack/eslint-plugin-query": "5.73.3",
|
|
41
|
-
"@typescript-eslint/parser": "8.
|
|
42
|
-
"@typescript-eslint/utils": "8.
|
|
41
|
+
"@typescript-eslint/parser": "8.31.0",
|
|
42
|
+
"@typescript-eslint/utils": "8.31.0",
|
|
43
43
|
"eslint-config-flat-gitignore": "2.1.0",
|
|
44
44
|
"eslint-config-prettier": "10.1.2",
|
|
45
45
|
"eslint-flat-config-utils": "2.0.1",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"eslint-plugin-jsonc": "2.20.0",
|
|
52
52
|
"eslint-plugin-n": "17.17.0",
|
|
53
53
|
"eslint-plugin-pnpm": "0.3.1",
|
|
54
|
-
"eslint-plugin-react-compiler": "19.
|
|
54
|
+
"eslint-plugin-react-compiler": "19.1.0-rc.1",
|
|
55
55
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
56
56
|
"eslint-plugin-regexp": "2.7.0",
|
|
57
57
|
"eslint-plugin-sonarjs": "3.0.2",
|
|
@@ -65,24 +65,24 @@
|
|
|
65
65
|
"graphql-config": "5.1.4",
|
|
66
66
|
"jsonc-eslint-parser": "2.4.0",
|
|
67
67
|
"local-pkg": "1.1.1",
|
|
68
|
-
"typescript-eslint": "8.
|
|
68
|
+
"typescript-eslint": "8.31.0",
|
|
69
69
|
"yaml-eslint-parser": "1.3.0",
|
|
70
70
|
"@2digits/constants": "1.0.0",
|
|
71
|
-
"@2digits/eslint-plugin": "3.0.
|
|
71
|
+
"@2digits/eslint-plugin": "3.0.3"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@eslint/config-inspector": "1.0.2",
|
|
75
75
|
"@types/node": "22.14.1",
|
|
76
76
|
"@types/react": "19.1.2",
|
|
77
77
|
"dedent": "1.5.3",
|
|
78
|
-
"eslint": "9.
|
|
78
|
+
"eslint": "9.25.1",
|
|
79
79
|
"eslint-typegen": "2.1.0",
|
|
80
80
|
"execa": "9.5.2",
|
|
81
81
|
"react": "19.1.0",
|
|
82
|
-
"tinyglobby": "0.2.
|
|
82
|
+
"tinyglobby": "0.2.13",
|
|
83
83
|
"typescript": "5.8.3",
|
|
84
84
|
"unbuild": "3.5.0",
|
|
85
|
-
"vitest": "3.1.
|
|
85
|
+
"vitest": "3.1.2",
|
|
86
86
|
"@2digits/tsconfig": "0.7.1"
|
|
87
87
|
},
|
|
88
88
|
"scripts": {
|