lint: Migrate all custom CSS rules to stylelint.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-08-05 11:32:25 -07:00
committed by Tim Abbott
parent 1d88c9e12e
commit 9f2cd66a4d
2 changed files with 15 additions and 20 deletions

View File

@@ -26,5 +26,20 @@ module.exports = {
// Limit language features
"color-no-hex": true,
"color-named": "never",
"declaration-property-value-blacklist": {
// thin/medium/thick is under-specified, please use pixels
"/^(border(-top|-right|-bottom|-left)?|outline)(-width)?$/": [
/\b(thin|medium|thick)\b/,
],
},
"function-blacklist": [
// We use hsl(a) instead of rgb(a)
"rgb",
"rgba",
],
// Zulip CSS should have no dependencies on external resources
"function-url-no-scheme-relative": true,
"function-url-scheme-whitelist": [],
},
};