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:
Anders Kaseorg 2020-08-05 16:53:56 -07:00 committed by Tim Abbott
parent 56931b68e0
commit e789a8bb20
2 changed files with 23 additions and 1 deletions

View File

@ -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,
},
};

View 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,
},
};