Can I stop stylelint extension from validating JavaScript file?

前端 未结 3 2002
太阳男子
太阳男子 2020-12-20 17:47

Good day,

In above picture, stylelint prompt a CSS error in a JS file. Is there a way to stop stylelint from validating javascript file, I coundn\'t find su

3条回答
  •  不思量自难忘°
    2020-12-20 18:08

    Look at this part in the documentation.

    You can specify /* stylelint-disable */ at the top of a file to disable the whole file from being lint.

    Or, better, juste specify /* stylelint-disable-line */ to disable for a single line.

提交回复
热议问题