将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 text-gray-dark; ^^^ Unknown at rule @apply css(unknownAtRules) } } 1. 2. 3. 4. 5. 6. 7. 解决方法: 在根目录 .vscode 文件夹下 .vscode/settings.json 添加 "css.customData": [".vscode/tailwindcss.json"] 1. 创建.vscode/tailwindcss.json { "version": 1.1, "atDirectives":...
创建Stylelint 配置 将stylelint.config.js使用以下内容命名的文件放入项目的根文件夹中。 module.exports = {extends: ["stylelint-config-standard"],rules: {"at-rule-no-unknown": [true,{ignoreAtRules: ["tailwind","apply","variants","responsive","screen",],},],"declaration-block-trailing-semico...
创建Stylelint 配置 将stylelint.config.js使用以下内容命名的文件放入项目的根文件夹中。 module.exports = {extends: ["stylelint-config-standard"],rules: {"at-rule-no-unknown": [true,{ignoreAtRules: ["tailwind","apply","variants","responsive","screen",],},],"declaration-block-trailing-semico...
{ "plugins": ["stylelint-scss"], "rules": { // recommended rules "at-rule-no-unknown": null, "scss/at-rule-no-unknown": true, // ... // any other rules you'd want to change e.g. "scss/dollar-variable-pattern": "^foo", "scss/selector-no-redundant-nesting-selector": ...
{"no-empty-source":null,"string-quotes":"single","at-rule-no-unknown": [true,{"ignoreAtRules": ["extend","at-root","debug","warn","error","if","else","for","each","while","mixin","include","content","return","function","tailwind","apply","responsive","variants","screen"...
at-mixin-pattern: Specify a pattern for Sass/SCSS-like mixin names. @-rule at-rule-conditional-no-parentheses: Disallow parentheses in conditional @ rules (if, elsif, while) (Autofixable). at-rule-no-unknown: Disallow unknown at-rules. Should be usedinstead ofStylelint'sat-rule-no-unknown...
101 - [`at-rule-no-unknown`](./src/rules/at-rule-no-unknown/README.md): Disallow unknown at-rules. Should be used **instead of** stylelint's [at-rule-no-unknown](https://stylelint.io/user-guide/rules/at-rule-no-unknown). 102 103 ### `$`-variable 104 105 - [`dollar...
@mixinprefix($property,$value,$prefixes) {@each$prefixin$prefixes{@ifnotindex($known-prefixes,$prefix) {@warn"Unknown prefix #{$prefix}."; }-#{$prefix}-#{$property}:$value; } #{$property}:$value; } 1. 2. 3. 4. 5. 6. ...
Warning:Unknown prefix wekbit. example.scss 6:7prefix()example.scss 16:3 root stylesheet Inspect()断电函数 其实Inspect()函数用的比较少,主要是用来做校验类型的。 Inspect(...)表达式中的内容如果是正常会返回对应的内容,如果发生错误则会弹出一个错误提示。