about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-04-05 03:04:08 -0400
committerGitHub <noreply@github.com>2023-04-05 09:04:08 +0200
commitcd14f712ad9f5a6ebdbec8c9b87740cd76d949e7 (patch)
tree13933741b5c8ff8e7e11d77706eb021eb8c5e800
parent45848d654709678ba35d9e97e0b3df3e3916cd75 (diff)
Enable Stylelint property-no-unknown (#24404)
-rw-r--r--app/javascript/styles/mastodon/components.scss1
-rw-r--r--stylelint.config.js15
2 files changed, 14 insertions, 2 deletions
diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss
index a4d7a6192..c24d61f89 100644
--- a/app/javascript/styles/mastodon/components.scss
+++ b/app/javascript/styles/mastodon/components.scss
@@ -2941,7 +2941,6 @@ $ui-header-height: 55px;
     width: 85%;
     height: 100%;
     pointer-events: none;
-    user-drag: none;
     user-select: none;
   }
 
diff --git a/stylelint.config.js b/stylelint.config.js
index c8c07a05b..cdb10c02e 100644
--- a/stylelint.config.js
+++ b/stylelint.config.js
@@ -13,7 +13,6 @@ module.exports = {
     'no-descending-specificity': null,
     'no-duplicate-selectors': null,
     'number-max-precision': 8,
-    'property-no-unknown': null,
     'property-no-vendor-prefix': null,
     'selector-class-pattern': null,
     'selector-id-pattern': null,
@@ -23,4 +22,18 @@ module.exports = {
     'scss/dollar-variable-empty-line-before': null,
     'scss/no-global-function-names': null,
   },
+  overrides: [
+    {
+      'files': ['app/javascript/styles/mailer.scss'],
+      rules: {
+        'property-no-unknown': [
+          true,
+          {
+            ignoreProperties: [
+              '/^mso-/',
+            ] },
+        ],
+      },
+    },
+  ],
 };