@2digits/eslint-config 4.4.4 → 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 +12 -7
- package/dist/index.d.ts +12 -7
- package/package.json +14 -14
package/dist/index.d.mts
CHANGED
|
@@ -1395,30 +1395,37 @@ Backward pagination arguments
|
|
|
1395
1395
|
'logical-assignment-operators'?: Linter.RuleEntry<LogicalAssignmentOperators>
|
|
1396
1396
|
/**
|
|
1397
1397
|
* Require languages for fenced code blocks
|
|
1398
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md
|
|
1398
1399
|
*/
|
|
1399
1400
|
'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>
|
|
1400
1401
|
/**
|
|
1401
1402
|
* Enforce heading levels increment by one
|
|
1403
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
1402
1404
|
*/
|
|
1403
1405
|
'markdown/heading-increment'?: Linter.RuleEntry<[]>
|
|
1404
1406
|
/**
|
|
1405
1407
|
* Disallow duplicate headings in the same document
|
|
1408
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-headings.md
|
|
1406
1409
|
*/
|
|
1407
1410
|
'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>
|
|
1408
1411
|
/**
|
|
1409
1412
|
* Disallow empty links
|
|
1413
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-links.md
|
|
1410
1414
|
*/
|
|
1411
1415
|
'markdown/no-empty-links'?: Linter.RuleEntry<[]>
|
|
1412
1416
|
/**
|
|
1413
1417
|
* Disallow HTML tags
|
|
1418
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-html.md
|
|
1414
1419
|
*/
|
|
1415
1420
|
'markdown/no-html'?: Linter.RuleEntry<MarkdownNoHtml>
|
|
1416
1421
|
/**
|
|
1417
1422
|
* Disallow invalid label references
|
|
1423
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-invalid-label-refs.md
|
|
1418
1424
|
*/
|
|
1419
1425
|
'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>
|
|
1420
1426
|
/**
|
|
1421
1427
|
* Disallow missing label references
|
|
1428
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
|
|
1422
1429
|
*/
|
|
1423
1430
|
'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>
|
|
1424
1431
|
/**
|
|
@@ -9150,7 +9157,7 @@ type NoEmpty = []|[{
|
|
|
9150
9157
|
}]
|
|
9151
9158
|
// ----- no-empty-function -----
|
|
9152
9159
|
type NoEmptyFunction = []|[{
|
|
9153
|
-
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")[]
|
|
9154
9161
|
}]
|
|
9155
9162
|
// ----- no-empty-pattern -----
|
|
9156
9163
|
type NoEmptyPattern = []|[{
|
|
@@ -9352,13 +9359,9 @@ type NoRestrictedModules = ((string | {
|
|
|
9352
9359
|
}[])
|
|
9353
9360
|
// ----- no-restricted-properties -----
|
|
9354
9361
|
type NoRestrictedProperties = ({
|
|
9355
|
-
|
|
9356
|
-
property?: string
|
|
9357
|
-
message?: string
|
|
9362
|
+
[k: string]: unknown | undefined
|
|
9358
9363
|
} | {
|
|
9359
|
-
|
|
9360
|
-
property: string
|
|
9361
|
-
message?: string
|
|
9364
|
+
[k: string]: unknown | undefined
|
|
9362
9365
|
})[]
|
|
9363
9366
|
// ----- no-restricted-syntax -----
|
|
9364
9367
|
type NoRestrictedSyntax = (string | {
|
|
@@ -12517,6 +12520,8 @@ type TsNoUnnecessaryCondition = []|[{
|
|
|
12517
12520
|
// ----- ts/no-unnecessary-type-assertion -----
|
|
12518
12521
|
type TsNoUnnecessaryTypeAssertion = []|[{
|
|
12519
12522
|
|
|
12523
|
+
checkLiteralConstAssertions?: boolean
|
|
12524
|
+
|
|
12520
12525
|
typesToIgnore?: string[]
|
|
12521
12526
|
}]
|
|
12522
12527
|
// ----- ts/no-unused-expressions -----
|
package/dist/index.d.ts
CHANGED
|
@@ -1395,30 +1395,37 @@ Backward pagination arguments
|
|
|
1395
1395
|
'logical-assignment-operators'?: Linter.RuleEntry<LogicalAssignmentOperators>
|
|
1396
1396
|
/**
|
|
1397
1397
|
* Require languages for fenced code blocks
|
|
1398
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md
|
|
1398
1399
|
*/
|
|
1399
1400
|
'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>
|
|
1400
1401
|
/**
|
|
1401
1402
|
* Enforce heading levels increment by one
|
|
1403
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
1402
1404
|
*/
|
|
1403
1405
|
'markdown/heading-increment'?: Linter.RuleEntry<[]>
|
|
1404
1406
|
/**
|
|
1405
1407
|
* Disallow duplicate headings in the same document
|
|
1408
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-headings.md
|
|
1406
1409
|
*/
|
|
1407
1410
|
'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>
|
|
1408
1411
|
/**
|
|
1409
1412
|
* Disallow empty links
|
|
1413
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-links.md
|
|
1410
1414
|
*/
|
|
1411
1415
|
'markdown/no-empty-links'?: Linter.RuleEntry<[]>
|
|
1412
1416
|
/**
|
|
1413
1417
|
* Disallow HTML tags
|
|
1418
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-html.md
|
|
1414
1419
|
*/
|
|
1415
1420
|
'markdown/no-html'?: Linter.RuleEntry<MarkdownNoHtml>
|
|
1416
1421
|
/**
|
|
1417
1422
|
* Disallow invalid label references
|
|
1423
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-invalid-label-refs.md
|
|
1418
1424
|
*/
|
|
1419
1425
|
'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>
|
|
1420
1426
|
/**
|
|
1421
1427
|
* Disallow missing label references
|
|
1428
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
|
|
1422
1429
|
*/
|
|
1423
1430
|
'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>
|
|
1424
1431
|
/**
|
|
@@ -9150,7 +9157,7 @@ type NoEmpty = []|[{
|
|
|
9150
9157
|
}]
|
|
9151
9158
|
// ----- no-empty-function -----
|
|
9152
9159
|
type NoEmptyFunction = []|[{
|
|
9153
|
-
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")[]
|
|
9154
9161
|
}]
|
|
9155
9162
|
// ----- no-empty-pattern -----
|
|
9156
9163
|
type NoEmptyPattern = []|[{
|
|
@@ -9352,13 +9359,9 @@ type NoRestrictedModules = ((string | {
|
|
|
9352
9359
|
}[])
|
|
9353
9360
|
// ----- no-restricted-properties -----
|
|
9354
9361
|
type NoRestrictedProperties = ({
|
|
9355
|
-
|
|
9356
|
-
property?: string
|
|
9357
|
-
message?: string
|
|
9362
|
+
[k: string]: unknown | undefined
|
|
9358
9363
|
} | {
|
|
9359
|
-
|
|
9360
|
-
property: string
|
|
9361
|
-
message?: string
|
|
9364
|
+
[k: string]: unknown | undefined
|
|
9362
9365
|
})[]
|
|
9363
9366
|
// ----- no-restricted-syntax -----
|
|
9364
9367
|
type NoRestrictedSyntax = (string | {
|
|
@@ -12517,6 +12520,8 @@ type TsNoUnnecessaryCondition = []|[{
|
|
|
12517
12520
|
// ----- ts/no-unnecessary-type-assertion -----
|
|
12518
12521
|
type TsNoUnnecessaryTypeAssertion = []|[{
|
|
12519
12522
|
|
|
12523
|
+
checkLiteralConstAssertions?: boolean
|
|
12524
|
+
|
|
12520
12525
|
typesToIgnore?: string[]
|
|
12521
12526
|
}]
|
|
12522
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.
|
|
32
|
+
"@eslint-react/eslint-plugin": "1.48.4",
|
|
33
33
|
"@eslint/compat": "1.2.8",
|
|
34
|
-
"@eslint/css": "0.
|
|
35
|
-
"@eslint/js": "9.
|
|
36
|
-
"@eslint/markdown": "6.
|
|
34
|
+
"@eslint/css": "0.7.0",
|
|
35
|
+
"@eslint/js": "9.25.1",
|
|
36
|
+
"@eslint/markdown": "6.4.0",
|
|
37
37
|
"@graphql-eslint/eslint-plugin": "4.4.0",
|
|
38
|
-
"@next/eslint-plugin-next": "15.3.
|
|
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": {
|