From 30f64754a9b2669e038b6639410283a4e408ee36 Mon Sep 17 00:00:00 2001 From: Robbe Van Petegem Date: Thu, 1 Aug 2024 22:39:33 +0200 Subject: [PATCH] Disallow important Not sure why this wasn't in our config until now. --- stylelint-config/css.js | 1 + stylelint-config/scss.js | 1 + 2 files changed, 2 insertions(+) diff --git a/stylelint-config/css.js b/stylelint-config/css.js index 704f9ef..1c9367d 100644 --- a/stylelint-config/css.js +++ b/stylelint-config/css.js @@ -6,6 +6,7 @@ module.exports = { extends: ["stylelint-config-standard"], plugins: ["stylelint-prettier", "stylelint-order"], rules: { + "declaration-no-important": true, "prettier/prettier": true, "selector-class-pattern": BEMPattern, "order/order": selectorOrdering, diff --git a/stylelint-config/scss.js b/stylelint-config/scss.js index accb77f..7442e8c 100644 --- a/stylelint-config/scss.js +++ b/stylelint-config/scss.js @@ -6,6 +6,7 @@ module.exports = { extends: ["stylelint-config-standard-scss", "stylelint-prettier/recommended"], plugins: ["stylelint-order"], rules: { + "declaration-no-important": true, "no-invalid-position-at-import-rule": [ true, {