Skip to content

Instantly share code, notes, and snippets.

@hitaboy
Created May 11, 2022 09:04
Show Gist options
  • Save hitaboy/a14c64b92d18ccd804802701bb4b74c4 to your computer and use it in GitHub Desktop.
Save hitaboy/a14c64b92d18ccd804802701bb4b74c4 to your computer and use it in GitHub Desktop.
SCSS Svelte VSCODE Configuration
This is the at-rule-no-unknown rule provided by vscode's built-in list.
In order to get rid of it you need to do the following:
1. Install stylelint extension code --install-extension stylelint.vscode-stylelint
2. Install stylelint recommended config npm install stylelint-config-recommended --save-dev
3. Add these two lines in your vscode USER SETTINGS
"css.validate": false, // Disable css built-in lint
"stylelint.enable": true, // Enable sytlelint
"scss.validate": false, // Disable scss lint (optional if using scss)
4. Paste these lines into a file called .stylelintrc in your project's root directory, create it if it does not exist. More information about stylelint's configuration follow this link: https://stylelint.io/user-guide/
{
"extends": "stylelint-config-recommended",
"rules": {
"at-rule-no-unknown": [ true, {
"ignoreAtRules": [
"extends",
"tailwind"
]
}],
"block-no-empty": null,
"unit-allowed-list": ["em", "rem", "s"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment