mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
lint: Migrate all custom CSS rules to stylelint.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
1d88c9e12e
commit
9f2cd66a4d
@@ -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": [],
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user