csslint icon indicating copy to clipboard operation
csslint copied to clipboard

Add option to exclude old IE version warnings

Open Torone opened this issue 11 years ago • 5 comments

During my tests I receive a very long list of warnings like this:

WARNING: The box-sizing property isn't supported in IE6 and IE7. The box-sizing properties isn't supported in IE6 and IE7. (box-sizing) Browsers: IE6, IE7

It will be nice to have an option to exclude few browsers to target our lint to what we exactly need only.

Cheers, Andrea

Torone avatar Sep 26 '14 08:09 Torone

I had the same problem but, as I see, you can turn off the tests in the options:

  options: {
    'box-sizing': false
  }

'box-sizing' is the only compatilibity rule that is checked by CSSLint so, IMHO, there is no need to include an exclude browsers option.

Gorzas avatar Oct 07 '14 12:10 Gorzas

If the only compatibility rule is this it's quite easy to exclude as you wrote. I was wondering at many more rules... Thanks.

Torone avatar Oct 07 '14 13:10 Torone

Agree, test shouldn't check compatibility with IE6 and IE7 by default.

pure-js avatar Jan 24 '16 00:01 pure-js

+1 for this request. Even Microsoft stopped supporting IE11 so many web developers also stop making their sites compatible with older browsers. At the same time I know there are corporate environments that still rely on old browsers. An option to indicate what browsers you would like to check for would be great.

JeePeeNL avatar Jun 12 '19 14:06 JeePeeNL

Microsoft stopped supporting IE7 over 4 years ago, the user percentage is below 0.1%. Perhaps it is time to stop doing compatibility checks for IE7 by default.

If someone is doing special legacy IE7 code they can always turn it on, or use an old version of the linter.

julianstirling avatar May 21 '20 14:05 julianstirling