Search code examples
cssvisual-studio-codevendor-prefix

How to make VSCode ignore a specific error


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


Solution

  • 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;
    }