Skip to content

Commit b05a408

Browse files
committed
fix: update default setting for invalid class handling to 'ignore' in configuration
1 parent 9cc237b commit b05a408

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/tailwindcss-language-service/src/util/state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export function getDefaultTailwindSettings(): Settings {
208208
recommendedVariantOrder: 'warning',
209209
usedBlocklistedClass: 'warning',
210210
suggestCanonicalClasses: 'warning',
211-
invalidClass: 'info',
211+
invalidClass: 'ignore',
212212
},
213213
showPixelEquivalents: true,
214214
includeLanguages: {},

packages/vscode-tailwindcss/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ Unsupported use of the [`@apply` directive](https://tailwindcss.com/docs/functio
171171

172172
Unknown or invalid path used with the [`theme` helper](https://tailwindcss.com/docs/functions-and-directives/#theme). **Default: `error`**
173173

174+
#### `tailwindCSS.lint.invalidClass`
175+
176+
Unknown utility class names. **Default: `ignore`**
177+
174178
#### `tailwindCSS.lint.cssConflict`
175179

176180
Class names on the same HTML element which apply the same CSS property or properties. **Default: `warning`**

packages/vscode-tailwindcss/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@
335335
"warning",
336336
"error"
337337
],
338-
"default": "info",
338+
"default": "ignore",
339339
"markdownDescription": "Classes that are not recognized as valid Tailwind CSS classes",
340340
"scope": "language-overridable"
341341
},

0 commit comments

Comments
 (0)