VS Code style-lint ignore directories

*爱你&永不变心* 提交于 2019-12-04 10:54:10

If you're using the VS Code stylelint extension, you can specify ignore paths via the stylelint.configOverrides setting.

Add the following to your VS Code settings.json file:

"stylelint.configOverrides": {
    "ignoreFiles": "assets/css/**"
}

Alternatively you can add a .stylelintignore file to the root folder of your project and add the ignore paths there:

assets/css/**

I'm using stylelint@9.2.0 with vscode-stylelint@0.20.4, and for me the .stylelintignore file is not being respected. If i use the CLI it is respected but the vscode plugin does not seem to do this correctly.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!