Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

stylelint on create-react-app @import-normalize throw error

I followed this doc to add CSS reset to my app.
https://create-react-app.dev/docs/adding-css-reset/#indexcss

But it showed this message:

enter image description here

"stylelint": {
"extends": "stylelint-config-recommended",
"rules": {
  "at-rule-no-unknown": null
}

How to fix this problem?it is annoying...

like image 621
codenoobforreal Avatar asked Nov 06 '22 10:11

codenoobforreal


1 Answers

To fix this warning you just need to add this line to.vscode/settings.json inside your project (you can create this file if it doesn't already exist):

{
  "css.lint.unknownAtRules": "ignore"
}

Source: https://create-react-app.dev/docs/adding-css-reset/#indexcss

like image 194
thalesbruno Avatar answered Dec 07 '22 14:12

thalesbruno