Files
shaka-player/.csslintrc
T
Joey Parrish a5e9ed61eb build: Upgrade CSS linter (#3991)
The new version requires additional configuration for less syntax, and
has new default rules we were out of compliance with.

I disabled rules about avoiding explicit vendor prefixes (such as
"-webkit") because we are not using any auto-prefixer tools.  Other
violations have been fixed:

 - kebab-case for element ids
 - quotes around URLs
 - double quotes instead of single quotes
 - disable class selector pattern matching for MDL (external)
 - use modern rgb/rgba syntax
 - no quotes on font families
 - no long-hand when short-hand will do

This brings our NPM audit vulnerabilities from 20 down to 10.
2022-02-22 14:16:22 -08:00

25 lines
790 B
Plaintext

{
"extends": "stylelint-config-standard",
"customSyntax": "postcss-less",
"rules": {
"font-family-no-missing-generic-family-keyword": null,
"declaration-block-single-line-max-declarations": null,
"declaration-empty-line-before": null,
"max-line-length": [80, {
ignorePattern: "/^@import\\s+/",
}],
"function-no-unknown": [true, {
ignoreFunctions: [
"data-uri",
"lighten",
"percentage",
],
}],
"property-no-vendor-prefix": null,
"selector-list-comma-newline-after": "always-multi-line",
"selector-no-vendor-prefix": null,
"selector-pseudo-element-colon-notation": "single",
"unit-allowed-list": ["em", "%", "px", "s", "deg", "vmin", "ms", "vh"]
}
}