将stylelint.config.js使用以下内容命名的文件放入项目的根文件夹中。 module.exports = {extends: ["stylelint-config-standard"],rules: {"at-rule-no-unknown": [true,{ignoreAtRules: ["tailwind","apply","variants","responsive","screen",],},],"declaration-block-trailing-semicolon": null,"no-d...
"at-rule-no-unknown": [ true, { ignoreAtRules: [ "tailwind", "apply", "variants", "responsive", "screen", ], }, ], "declaration-block-trailing-semicolon": null, "no-descending-specificity": null, }, }; 三、安装Stylelint、Tailwind CSS IntelliSense扩展 四、修改VSCode的settings.json...
"css.customData": [".vscode/tailwindcss.json"] 1. 创建.vscode/tailwindcss.json { "version": 1.1, "atDirectives": [ { "name": "@tailwind", "description": "Use the `@tailwind` directive to insert Tailwind's `base`, `components`, `utilities` and `screens` styles into your CSS.", ...
将stylelint.config.js使用以下内容命名的文件放入项目的根文件夹中。 module.exports = {extends: ["stylelint-config-standard"],rules: {"at-rule-no-unknown": [true,{ignoreAtRules: ["tailwind","apply","variants","responsive","screen",],},],"declaration-block-trailing-semicolon": null,"no-d...
@apply w-20 h-4; } It warning:Unknown at rule @applycss(unknownAtRules)at the position of@apply but it does not warning if I place@applysection code to a css file. I had followed with the document:https://tailwindcss.com/docs/guides/vue-3-vite I do not...
"css.lint.unknownAtRules": "ignore" 是一个配置项,用于指示 Vue 项目中的 CSS 编辑器(例如 VSCode)忽略未知的 at 规则(@规则)。这个配置项应该放在你的编辑器的设置文件中。 对于VSCode 编辑器,你应该在你的 settings.json 文件中添加这个配置。这个文件通常在编辑器的 [工作区]/.vscode` 文件夹中,如果不...
./styles/globals.css @tailwindbase;^^^Unknown at rule @tailwindcss(unknownAtRules) ./styles/globals.css @layerbase{*{@applytext-gray-dark;^^^Unknown at rule @applycss(unknownAtRules)}} VSCode Solution: Define Custom Data for CSS The solution was ...
Describe the bug there are warning abount tailwind.css rule @apply Reproduction install tailwind create a css class use the rule @apply Expected behavior there are not warning System Info System: OS: Linux 4.14 Ubuntu 20.04.6 LTS (Focal ...
Tailwind CSS 是一款 Units 導向的 CSS 框架,它的許多優勢讓大家趨之若鶩的學習與瞭解,但是在 VSCode 開發上時常會遇到 Unknown at rule @tailwind、Unknown at rule @apply 等錯誤訊息,所以這一篇來紀錄一下解決方式。 前言 Tailwind CSS 是一款 Units 導向的 CSS 框架,它的許多優勢讓大家趨之若鶩的學習與瞭...
Unknown at rule @tailwindcss (unknownAtRules) in VS Code ⌘+, 打开配置