From 2b7ee353dd33b868ca31676f9431042fea115f96 Mon Sep 17 00:00:00 2001 From: Sachin Raja <58836760+sachinraja@users.noreply.github.com> Date: Thu, 17 Jun 2021 14:31:41 -0700 Subject: [PATCH] Suggest lighter css rule `css.validate` disables all css linting. This rule only disables the unknown `@` rules like `@tailwind` and `@apply`. --- packages/vscode-tailwindcss/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vscode-tailwindcss/README.md b/packages/vscode-tailwindcss/README.md index b691bca6..dcb9a061 100644 --- a/packages/vscode-tailwindcss/README.md +++ b/packages/vscode-tailwindcss/README.md @@ -34,10 +34,10 @@ Provides syntax definitions so that Tailwind features are highlighted correctly. ## Recommended VS Code Settings -VS Code has built-in CSS validation which may display errors when using Tailwind-specific syntax, such as `@apply`. You can disable this with the `css.validate` setting: +VS Code has built-in CSS validation which may display errors when using Tailwind-specific syntax, such as `@apply`. You can disable this with the `css.lint.unknownAtRules` setting: ``` -"css.validate": false +"css.lint.unknownAtRules": "ignore" ``` By default VS Code will not trigger completions when editing "string" content, for example within JSX attribute values. Updating the `editor.quickSuggestions` setting may improve your experience: