Guide: https://www.meidev.co/blog/visual-studio-code-css-linting-with-tailwind/
ext install stylelint.vscode-stylelint
// in project:
yarn add stylelint-config-recommended
// global:
yarn global add stylelint-config-recommended
stylelint.config.js
to your project with this content:module.exports = {
// add your custom config here
// https://stylelint.io/user-guide/configuration
extends: ['stylelint-config-recommended'],
rules: {
'at-rule-no-unknown': [
true,
{
ignoreAtRules: ['tailwind', 'apply', 'variants', 'responsive', 'screen']
}
],
'declaration-block-trailing-semicolon': null,
'no-descending-specificity': null
}
}
Open up vscode's settings and search for css validate. Disable CSS: Validate - Enables or disables all validations.