@ncontiero/eslint-config 6.5.0 → 6.5.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.ts +49 -2
- package/package.json +24 -24
package/dist/index.d.ts
CHANGED
|
@@ -487,6 +487,11 @@ interface RuleOptions {
|
|
|
487
487
|
* @see https://typescript-eslint.io/rules/no-unused-expressions
|
|
488
488
|
*/
|
|
489
489
|
'@typescript-eslint/no-unused-expressions'?: Linter.RuleEntry<TypescriptEslintNoUnusedExpressions>
|
|
490
|
+
/**
|
|
491
|
+
* Disallow unused private class members
|
|
492
|
+
* @see https://typescript-eslint.io/rules/no-unused-private-class-members
|
|
493
|
+
*/
|
|
494
|
+
'@typescript-eslint/no-unused-private-class-members'?: Linter.RuleEntry<[]>
|
|
490
495
|
/**
|
|
491
496
|
* Disallow unused variables
|
|
492
497
|
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
@@ -502,6 +507,11 @@ interface RuleOptions {
|
|
|
502
507
|
* @see https://typescript-eslint.io/rules/no-useless-constructor
|
|
503
508
|
*/
|
|
504
509
|
'@typescript-eslint/no-useless-constructor'?: Linter.RuleEntry<[]>
|
|
510
|
+
/**
|
|
511
|
+
* Disallow default values that will never be used
|
|
512
|
+
* @see https://typescript-eslint.io/rules/no-useless-default-assignment
|
|
513
|
+
*/
|
|
514
|
+
'@typescript-eslint/no-useless-default-assignment'?: Linter.RuleEntry<[]>
|
|
505
515
|
/**
|
|
506
516
|
* Disallow empty exports that don't change anything in a module file
|
|
507
517
|
* @see https://typescript-eslint.io/rules/no-useless-empty-export
|
|
@@ -1234,6 +1244,11 @@ interface RuleOptions {
|
|
|
1234
1244
|
* @see https://html-eslint.org/docs/rules/no-trailing-spaces
|
|
1235
1245
|
*/
|
|
1236
1246
|
'html/no-trailing-spaces'?: Linter.RuleEntry<[]>
|
|
1247
|
+
/**
|
|
1248
|
+
* Disallow tags with only whitespace children.
|
|
1249
|
+
* @see https://html-eslint.org/docs/rules/no-whitespace-only-children
|
|
1250
|
+
*/
|
|
1251
|
+
'html/no-whitespace-only-children'?: Linter.RuleEntry<HtmlNoWhitespaceOnlyChildren>
|
|
1237
1252
|
/**
|
|
1238
1253
|
* Prefer to use HTTPS for embedded resources
|
|
1239
1254
|
* @see https://html-eslint.org/docs/rules/prefer-https
|
|
@@ -1869,6 +1884,11 @@ interface RuleOptions {
|
|
|
1869
1884
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-property-type.md#repos-sticky-header
|
|
1870
1885
|
*/
|
|
1871
1886
|
'jsdoc/require-property-type'?: Linter.RuleEntry<[]>
|
|
1887
|
+
/**
|
|
1888
|
+
* Requires that Promise rejections are documented with `@rejects` tags.
|
|
1889
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-rejects.md#repos-sticky-header
|
|
1890
|
+
*/
|
|
1891
|
+
'jsdoc/require-rejects'?: Linter.RuleEntry<JsdocRequireRejects>
|
|
1872
1892
|
/**
|
|
1873
1893
|
* Requires that returns are documented with `@returns`.
|
|
1874
1894
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns.md#repos-sticky-header
|
|
@@ -5279,7 +5299,7 @@ interface RuleOptions {
|
|
|
5279
5299
|
'tailwindcss/enforce-consistent-important-position'?: Linter.RuleEntry<TailwindcssEnforceConsistentImportantPosition>
|
|
5280
5300
|
/**
|
|
5281
5301
|
* Enforce consistent line wrapping for tailwind classes.
|
|
5282
|
-
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/
|
|
5302
|
+
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-line-wrapping.md
|
|
5283
5303
|
*/
|
|
5284
5304
|
'tailwindcss/enforce-consistent-line-wrapping'?: Linter.RuleEntry<TailwindcssEnforceConsistentLineWrapping>
|
|
5285
5305
|
/**
|
|
@@ -7829,6 +7849,7 @@ type HtmlIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
|
7829
7849
|
[k: string]: number
|
|
7830
7850
|
}
|
|
7831
7851
|
ignoreComment?: boolean
|
|
7852
|
+
templateIndentBase?: ("first" | "templateTag")
|
|
7832
7853
|
}]
|
|
7833
7854
|
// ----- html/max-element-depth -----
|
|
7834
7855
|
type HtmlMaxElementDepth = []|[{
|
|
@@ -7866,6 +7887,10 @@ type HtmlNoRestrictedTags = {
|
|
|
7866
7887
|
tagPatterns: string[]
|
|
7867
7888
|
message?: string
|
|
7868
7889
|
}[]
|
|
7890
|
+
// ----- html/no-whitespace-only-children -----
|
|
7891
|
+
type HtmlNoWhitespaceOnlyChildren = []|[{
|
|
7892
|
+
tagPatterns?: string[]
|
|
7893
|
+
}]
|
|
7869
7894
|
// ----- html/quotes -----
|
|
7870
7895
|
type HtmlQuotes = []|[("single" | "double")]|[("single" | "double"), {
|
|
7871
7896
|
enforceTemplatedAttrValue?: boolean
|
|
@@ -8281,6 +8306,8 @@ type JsdocCheckExamples = []|[{
|
|
|
8281
8306
|
// ----- jsdoc/check-indentation -----
|
|
8282
8307
|
type JsdocCheckIndentation = []|[{
|
|
8283
8308
|
|
|
8309
|
+
allowIndentedSections?: boolean
|
|
8310
|
+
|
|
8284
8311
|
excludeTags?: string[]
|
|
8285
8312
|
}]
|
|
8286
8313
|
// ----- jsdoc/check-line-alignment -----
|
|
@@ -8786,6 +8813,16 @@ type JsdocRequireParamType = []|[{
|
|
|
8786
8813
|
|
|
8787
8814
|
setDefaultDestructuredRootType?: boolean
|
|
8788
8815
|
}]
|
|
8816
|
+
// ----- jsdoc/require-rejects -----
|
|
8817
|
+
type JsdocRequireRejects = []|[{
|
|
8818
|
+
|
|
8819
|
+
contexts?: (string | {
|
|
8820
|
+
comment?: string
|
|
8821
|
+
context?: string
|
|
8822
|
+
})[]
|
|
8823
|
+
|
|
8824
|
+
exemptedBy?: string[]
|
|
8825
|
+
}]
|
|
8789
8826
|
// ----- jsdoc/require-returns -----
|
|
8790
8827
|
type JsdocRequireReturns = []|[{
|
|
8791
8828
|
|
|
@@ -14825,7 +14862,17 @@ type TailwindcssEnforceConsistentClassOrder = []|[{
|
|
|
14825
14862
|
|
|
14826
14863
|
tsconfig?: string
|
|
14827
14864
|
|
|
14828
|
-
|
|
14865
|
+
componentClassOrder?: ("asc" | "desc" | "preserve")
|
|
14866
|
+
|
|
14867
|
+
componentClassPosition?: ("start" | "end")
|
|
14868
|
+
|
|
14869
|
+
detectComponentClasses?: boolean
|
|
14870
|
+
|
|
14871
|
+
order?: ("asc" | "desc" | "official" | "strict")
|
|
14872
|
+
|
|
14873
|
+
unknownClassOrder?: ("asc" | "desc" | "preserve")
|
|
14874
|
+
|
|
14875
|
+
unknownClassPosition?: ("start" | "end")
|
|
14829
14876
|
}]
|
|
14830
14877
|
// ----- tailwindcss/enforce-consistent-important-position -----
|
|
14831
14878
|
type TailwindcssEnforceConsistentImportantPosition = []|[{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ncontiero/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.5.
|
|
4
|
+
"version": "6.5.2",
|
|
5
5
|
"description": "Nicolas's ESLint config.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Nicolas Contiero",
|
|
@@ -39,19 +39,19 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
41
41
|
"@eslint/markdown": "^7.5.1",
|
|
42
|
-
"@html-eslint/eslint-plugin": "^0.
|
|
43
|
-
"@html-eslint/parser": "^0.
|
|
44
|
-
"@next/eslint-plugin-next": "^16.0.
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
46
|
-
"@typescript-eslint/parser": "^8.
|
|
42
|
+
"@html-eslint/eslint-plugin": "^0.51.0",
|
|
43
|
+
"@html-eslint/parser": "^0.51.0",
|
|
44
|
+
"@next/eslint-plugin-next": "^16.0.10",
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^8.50.0",
|
|
46
|
+
"@typescript-eslint/parser": "^8.50.0",
|
|
47
47
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
48
48
|
"eslint-merge-processors": "^2.0.0",
|
|
49
49
|
"eslint-plugin-antfu": "^3.1.1",
|
|
50
|
-
"eslint-plugin-better-tailwindcss": "4.0.0-beta.
|
|
51
|
-
"eslint-plugin-command": "^3.
|
|
50
|
+
"eslint-plugin-better-tailwindcss": "4.0.0-beta.6",
|
|
51
|
+
"eslint-plugin-command": "^3.4.0",
|
|
52
52
|
"eslint-plugin-de-morgan": "^2.0.0",
|
|
53
53
|
"eslint-plugin-import-x": "^4.16.1",
|
|
54
|
-
"eslint-plugin-jsdoc": "^61.
|
|
54
|
+
"eslint-plugin-jsdoc": "^61.5.0",
|
|
55
55
|
"eslint-plugin-jsonc": "^2.21.0",
|
|
56
56
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
57
57
|
"eslint-plugin-n": "^17.23.1",
|
|
@@ -60,38 +60,38 @@
|
|
|
60
60
|
"eslint-plugin-promise": "^7.2.1",
|
|
61
61
|
"eslint-plugin-react": "^7.37.5",
|
|
62
62
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
63
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
63
|
+
"eslint-plugin-react-refresh": "^0.4.25",
|
|
64
64
|
"eslint-plugin-regexp": "^2.10.0",
|
|
65
65
|
"eslint-plugin-toml": "^0.12.0",
|
|
66
66
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
67
67
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
68
|
-
"eslint-plugin-yml": "^1.19.
|
|
68
|
+
"eslint-plugin-yml": "^1.19.1",
|
|
69
69
|
"globals": "^16.5.0",
|
|
70
|
-
"jsonc-eslint-parser": "^2.4.
|
|
70
|
+
"jsonc-eslint-parser": "^2.4.2",
|
|
71
71
|
"local-pkg": "^1.1.2",
|
|
72
|
-
"prettier": "^3.
|
|
73
|
-
"toml-eslint-parser": "^0.10.
|
|
74
|
-
"yaml-eslint-parser": "^1.3.
|
|
72
|
+
"prettier": "^3.7.4",
|
|
73
|
+
"toml-eslint-parser": "^0.10.1",
|
|
74
|
+
"yaml-eslint-parser": "^1.3.2"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@changesets/cli": "^2.29.
|
|
78
|
-
"@commitlint/cli": "^20.
|
|
79
|
-
"@commitlint/config-conventional": "^20.
|
|
77
|
+
"@changesets/cli": "^2.29.8",
|
|
78
|
+
"@commitlint/cli": "^20.2.0",
|
|
79
|
+
"@commitlint/config-conventional": "^20.2.0",
|
|
80
80
|
"@ncontiero/changelog-github": "^2.1.2",
|
|
81
81
|
"@ncontiero/prettier-config": "^1.0.0",
|
|
82
82
|
"@tanstack/eslint-plugin-query": "^5.91.2",
|
|
83
83
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
84
|
-
"@types/node": "^
|
|
85
|
-
"eslint": "^9.39.
|
|
84
|
+
"@types/node": "^25.0.2",
|
|
85
|
+
"eslint": "^9.39.2",
|
|
86
86
|
"eslint-typegen": "^2.3.0",
|
|
87
|
-
"execa": "^9.6.
|
|
87
|
+
"execa": "^9.6.1",
|
|
88
88
|
"husky": "^9.1.7",
|
|
89
|
-
"lint-staged": "^16.2.
|
|
89
|
+
"lint-staged": "^16.2.7",
|
|
90
90
|
"tinyglobby": "^0.2.15",
|
|
91
91
|
"tsup": "^8.5.1",
|
|
92
|
-
"tsx": "^4.
|
|
92
|
+
"tsx": "^4.21.0",
|
|
93
93
|
"typescript": "^5.9.3",
|
|
94
|
-
"vitest": "^4.0.
|
|
94
|
+
"vitest": "^4.0.15"
|
|
95
95
|
},
|
|
96
96
|
"engines": {
|
|
97
97
|
"node": ">=20.11.0"
|