How to make VSCode ignore a specific error

92 Views Asked by At

I wrote this CSS code in VSCode :


input[type="number"] {
  -moz-appearance: textfield;
}

and I get this error:

Also define the standard property 'appearance' for compatibilitycss(vendorPrefix) ️ Property is nonstandard. Avoid using it.

How do I force VSCode to ignore this error ?

just ignoring this error and removing the red line below it

1

There are 1 best solutions below

1
On BEST ANSWER

You can add standard property appearance with same value with -moz-appearance to remove the error. In your case:

input[type='number'] {
  appearance: textfied;
  -moz-appearance: textfield;
}