How to add a @tailwind CSS rule to css checker

后端 未结 9 1232
無奈伤痛
無奈伤痛 2020-12-23 08:55

Tailwind adds @tailwind css at rule which is flagged as unknown. How can I avoid this error?

eg styles.css

@tailwind prefligh

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-23 09:44

    SCSS

    If you are using SASS with Tailwind, you will still see errors in your .scss files using these earlier answers to this question.

    To properly lint SASS, you can add to your VS Code settings:

    "scss.validate": false,
    

    Follow the instructions by @hasusuf but turn off the default VS Code validator:

    Add these 3 settings:

    "css.validate": false,
    "scss.validate": false,
    "stylelint.enable": true,
    

提交回复
热议问题