mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-14 15:56:38 +03:00
a5e9ed61eb
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.
25 lines
790 B
Plaintext
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"]
|
|
}
|
|
}
|