aboutsummaryrefslogtreecommitdiffstats
path: root/stylelint.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'stylelint.config.js')
-rw-r--r--stylelint.config.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/stylelint.config.js b/stylelint.config.js
new file mode 100644
index 00000000000..03e25cc5bdb
--- /dev/null
+++ b/stylelint.config.js
@@ -0,0 +1,24 @@
+/**
+ * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+/** @type {import('stylelint').Config} */
+const config = {
+ extends: '@nextcloud/stylelint-config',
+ plugins: ['stylelint-use-logical'],
+ rules: {
+ 'csstools/use-logical': ['always',
+ {
+ except: [
+ // For now ignore block rules for logical properties
+ /(^|-)(height|width)$/, /(^|-)(top|bottom)(-|$)/,
+ // Also ignore float as this is not well supported (I look at you Samsung)
+ 'clear', 'float',
+ ],
+ },
+ ],
+ },
+}
+
+module.exports = config