0
0
mirror of https://github.com/nextcloud/server.git synced 2024-10-24 11:06:57 +00:00
nextcloud_server/stylelint.config.js
Ferdinand Thiessen faeb2f0f43 chore: Add stylelint rules to verify we only use logical properties
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-08-29 08:35:06 +00:00

25 lines
597 B
JavaScript

/**
* 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