How webstorm css code customizes the warning information of W3C validator

because the project needs, when writing css, you don"t need to write units, just write numbers, but W3C"s rule stipulates that all units need to be written except 0, so webstorm will give a warning.

(the following line-hight is deliberately misspelled)

clipboard.png
]

w3c css validator

clipboard.png

line-hight

clipboard.png

is there any way to ignore only part of the validator? Do I need to use stylelint?

Apr.09,2021

found. You can set different checksum warnings separately in invalid elements .

clipboard.png

Menu