Vscode-docs: Disable CSS Linting

Created on 17 Dec 2015  路  10Comments  路  Source: microsoft/vscode-docs

_From @cfjedimaster on December 16, 2015 19:59_

I'm working on an extension that supports CSSLint. While you can disable VSC's linting of JS files (https://code.visualstudio.com/docs/languages/javascript#_javascript-linters-eslint-jshint), you can't disable VSC's CSS linting.

_Copied from original issue: Microsoft/vscode#1392_

Most helpful comment

Uhm How do we do this in vscode? SCSS Linting is messed up and I'd like to disable it

Edit

I figured it out if anybody ever runs into this. Open User Preferences ctrl + , and type "disable" You'll see a host of options to turn off language validations, click the one you'd like to disable and set it to false

All 10 comments

_From @cfjedimaster on December 16, 2015 20:36_

Ok, it _is_ supported, just not documented. :)

_From @egamma on December 16, 2015 20:45_

@cfjedimaster This is what I thought :smile:

@aeschli can you look into updates in the doc.

For what it's worth in Microsoft Visual Studio Community 2017:
Tools -> Options... -> Text Editor -> CSS -> CssLint -> Enable CSS Lint = False

@OutsourcedGuru totally different product :)

@cfjedimaster And yet, wouldn't it be cool to find the feature using the same menu navigation. ha

Shrug - maybe. I don't ever use Visual Studio so I wouldn't have that muscle memory. ;)

Uhm How do we do this in vscode? SCSS Linting is messed up and I'd like to disable it

Edit

I figured it out if anybody ever runs into this. Open User Preferences ctrl + , and type "disable" You'll see a host of options to turn off language validations, click the one you'd like to disable and set it to false

Thanks @DavidTheProgrammer, good call on the 'disable' search.
FTR, the classic settings.json entry:
"css.validate": false

Thanks @DavidTheProgrammer .

Has anyone know how to disable a specific rule?
I am working with CSS Grids an adding some prefixes for IE11, but got an annoying 'problem': https://cloudup.com/cBSDTRwWdRa

Open User Preferences ctrl + , and type "disable" You'll see a host of options to turn off language validations, click the one you'd like to disable and set it to false

Specifically, if you search for "css validate" you will find an option named "CSS: Validate" whose description is "Enables or disables all validations."

screenshot of the <a href="CSS:Validate">CSS:Validate</a> option

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bersbersbers picture bersbersbers  路  6Comments

krokofant picture krokofant  路  7Comments

bpasero picture bpasero  路  3Comments

tariqawni picture tariqawni  路  5Comments

yohanmishkin picture yohanmishkin  路  6Comments