mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
stylelint: Enable no-vendor-prefix rules.
Our vendor prefixes are generated by autoprefixer. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
56931b68e0
commit
e789a8bb20
@@ -5,7 +5,6 @@ module.exports = {
|
||||
rules: {
|
||||
// Add some exceptions for recommended rules
|
||||
"at-rule-no-unknown": [true, {ignoreAtRules: ["extend"]}],
|
||||
"property-no-unknown": [true, {ignoreProperties: [/^mso-/]}],
|
||||
|
||||
// Disable recommended rules we don't comply with yet
|
||||
"font-family-no-missing-generic-family-keyword": null,
|
||||
@@ -37,5 +36,12 @@ module.exports = {
|
||||
// Zulip CSS should have no dependencies on external resources
|
||||
"function-url-no-scheme-relative": true,
|
||||
"function-url-scheme-whitelist": [],
|
||||
|
||||
// We use autoprefixer to generate vendor prefixes
|
||||
"at-rule-no-vendor-prefix": true,
|
||||
"media-feature-name-no-vendor-prefix": true,
|
||||
"property-no-vendor-prefix": true,
|
||||
"selector-no-vendor-prefix": true,
|
||||
"value-no-vendor-prefix": true,
|
||||
},
|
||||
};
|
||||
|
16
templates/zerver/emails/stylelint.config.js
Normal file
16
templates/zerver/emails/stylelint.config.js
Normal file
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
extends: ["../../../stylelint.config"],
|
||||
rules: {
|
||||
// Add some exceptions for recommended rules
|
||||
"property-no-unknown": [true, {ignoreProperties: [/^mso-/]}],
|
||||
|
||||
// We don't run autoprefixer on email CSS
|
||||
"at-rule-no-vendor-prefix": null,
|
||||
"media-feature-name-no-vendor-prefix": null,
|
||||
"property-no-vendor-prefix": null,
|
||||
"selector-no-vendor-prefix": null,
|
||||
"value-no-vendor-prefix": null,
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user