@ncontiero/eslint-config 6.5.1 → 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.
Files changed (2) hide show
  1. package/dist/index.d.ts +27 -2
  2. package/package.json +23 -23
package/dist/index.d.ts CHANGED
@@ -507,6 +507,11 @@ interface RuleOptions {
507
507
  * @see https://typescript-eslint.io/rules/no-useless-constructor
508
508
  */
509
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<[]>
510
515
  /**
511
516
  * Disallow empty exports that don't change anything in a module file
512
517
  * @see https://typescript-eslint.io/rules/no-useless-empty-export
@@ -1239,6 +1244,11 @@ interface RuleOptions {
1239
1244
  * @see https://html-eslint.org/docs/rules/no-trailing-spaces
1240
1245
  */
1241
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>
1242
1252
  /**
1243
1253
  * Prefer to use HTTPS for embedded resources
1244
1254
  * @see https://html-eslint.org/docs/rules/prefer-https
@@ -5289,7 +5299,7 @@ interface RuleOptions {
5289
5299
  'tailwindcss/enforce-consistent-important-position'?: Linter.RuleEntry<TailwindcssEnforceConsistentImportantPosition>
5290
5300
  /**
5291
5301
  * Enforce consistent line wrapping for tailwind classes.
5292
- * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/multiline.md
5302
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-line-wrapping.md
5293
5303
  */
5294
5304
  'tailwindcss/enforce-consistent-line-wrapping'?: Linter.RuleEntry<TailwindcssEnforceConsistentLineWrapping>
5295
5305
  /**
@@ -7839,6 +7849,7 @@ type HtmlIndent = []|[("tab" | number)]|[("tab" | number), {
7839
7849
  [k: string]: number
7840
7850
  }
7841
7851
  ignoreComment?: boolean
7852
+ templateIndentBase?: ("first" | "templateTag")
7842
7853
  }]
7843
7854
  // ----- html/max-element-depth -----
7844
7855
  type HtmlMaxElementDepth = []|[{
@@ -7876,6 +7887,10 @@ type HtmlNoRestrictedTags = {
7876
7887
  tagPatterns: string[]
7877
7888
  message?: string
7878
7889
  }[]
7890
+ // ----- html/no-whitespace-only-children -----
7891
+ type HtmlNoWhitespaceOnlyChildren = []|[{
7892
+ tagPatterns?: string[]
7893
+ }]
7879
7894
  // ----- html/quotes -----
7880
7895
  type HtmlQuotes = []|[("single" | "double")]|[("single" | "double"), {
7881
7896
  enforceTemplatedAttrValue?: boolean
@@ -14847,7 +14862,17 @@ type TailwindcssEnforceConsistentClassOrder = []|[{
14847
14862
 
14848
14863
  tsconfig?: string
14849
14864
 
14850
- order?: ("asc" | "desc" | "official" | "improved")
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")
14851
14876
  }]
14852
14877
  // ----- tailwindcss/enforce-consistent-important-position -----
14853
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.1",
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.49.0",
43
- "@html-eslint/parser": "^0.49.0",
44
- "@next/eslint-plugin-next": "^16.0.3",
45
- "@typescript-eslint/eslint-plugin": "^8.47.0",
46
- "@typescript-eslint/parser": "^8.47.0",
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.4",
51
- "eslint-plugin-command": "^3.3.1",
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.4.0",
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.24",
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.0",
68
+ "eslint-plugin-yml": "^1.19.1",
69
69
  "globals": "^16.5.0",
70
- "jsonc-eslint-parser": "^2.4.1",
70
+ "jsonc-eslint-parser": "^2.4.2",
71
71
  "local-pkg": "^1.1.2",
72
- "prettier": "^3.6.2",
73
- "toml-eslint-parser": "^0.10.0",
74
- "yaml-eslint-parser": "^1.3.0"
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.7",
78
- "@commitlint/cli": "^20.1.0",
79
- "@commitlint/config-conventional": "^20.0.0",
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": "^24.10.1",
85
- "eslint": "^9.39.1",
84
+ "@types/node": "^25.0.2",
85
+ "eslint": "^9.39.2",
86
86
  "eslint-typegen": "^2.3.0",
87
- "execa": "^9.6.0",
87
+ "execa": "^9.6.1",
88
88
  "husky": "^9.1.7",
89
89
  "lint-staged": "^16.2.7",
90
90
  "tinyglobby": "^0.2.15",
91
91
  "tsup": "^8.5.1",
92
- "tsx": "^4.20.6",
92
+ "tsx": "^4.21.0",
93
93
  "typescript": "^5.9.3",
94
- "vitest": "^4.0.13"
94
+ "vitest": "^4.0.15"
95
95
  },
96
96
  "engines": {
97
97
  "node": ">=20.11.0"