stylelint.config.js 597 B

123456789101112131415161718192021222324
  1. /**
  2. * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-License-Identifier: AGPL-3.0-or-later
  4. */
  5. /** @type {import('stylelint').Config} */
  6. const config = {
  7. extends: '@nextcloud/stylelint-config',
  8. plugins: ['stylelint-use-logical'],
  9. rules: {
  10. 'csstools/use-logical': ['always',
  11. {
  12. except: [
  13. // For now ignore block rules for logical properties
  14. /(^|-)(height|width)$/, /(^|-)(top|bottom)(-|$)/,
  15. // Also ignore float as this is not well supported (I look at you Samsung)
  16. 'clear', 'float',
  17. ],
  18. },
  19. ],
  20. },
  21. }
  22. module.exports = config