Open skripnike opened 6 years ago
I'm similarly experiencing that the ignore-non-standard
option on the no-vendor-prefixes
rule doesn't behave as described in the docs:
# .sass-lint.yml
options:
formatter: stylish
files:
include: '**/*.s+(a|c)ss'
rules:
no-vendor-prefixes:
- 1
-
ignore-non-standard: true
$black: #111;
body {
-webkit-font-smoothing: antialiased;
-webkit-tap-highlight-color: $black;
}
Running sass-lint
spits out the following:
3:3 warning Vendor prefixes should not be used no-vendor-prefixes
4:3 warning Vendor prefixes should not be used no-vendor-prefixes
I am experiencing the same issue.
"ignore-non-standard is an option that allows you to specify whether only standard properties from our properties list should be affected..." https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-vendor-prefixes.md
They are using this properties-list which includes: font-smoothing
and tap-highlight-color
altough they are non-standard according to the MDN web docs
List: https://github.com/sasstools/sass-lint/blob/master/data/properties.yml
non-standard https://developer.mozilla.org/de/docs/Web/CSS/-webkit-tap-highlight-color
non-standard https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth
I don't get it.
gulp-sass-lint: 1.3.4
.sass-lint.yml:
I want to ignore
-webkit-tap-highlight-color
property forno-vendor-prefixes
rulehttps://github.com/sasstools/sass-lint/blob/master/docs/rules/no-vendor-prefixes.md#ignore-non-standard herer exist article how to Ignore Non Standard, but not working because
tap-highlight-color
exist in default property list https://github.com/sasstools/sass-lint/blob/master/data/properties.ymlexcluded-identifiers: ['-webkit-tap-highlight-color']
do not work aswell possible only ignore all webkit properies:only helped to remove
tap-highlight-color
from/node_modules/ssas-lint/data/properties.yml
and useignore-non-standard: true
Does exist anly possible way to ignore specified property?
-webkit-tap-highlight-color
for example.