diff --git a/CHANGELOG.md b/CHANGELOG.md index c974dac..639b0f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,15 @@ --> # Changelog +## [v4.0.0](https://github.com/nextcloud/stylelint-config/tree/v4.0.0) (unreleased) + +### Breaking changes :boom: +This configuration again contains stylistic rules. +Due to no consensus on the prettier usage and the large user base of the configuration, +the stylistic rules are again part of this configuration. + +If you are using prettier, you can try to extend from `@nextcloud/prettier-config/config.js` instead. + ## [v3.1.0](https://github.com/nextcloud/stylelint-config/tree/v3.1.0) (2025-05-22) ### Added diff --git a/configs/formatting.js b/configs/formatting.js new file mode 100644 index 0000000..ea81c77 --- /dev/null +++ b/configs/formatting.js @@ -0,0 +1,16 @@ +/*! + * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +/** @type {import('stylelint').Config} */ +module.exports = { + plugins: ['@stylistic/stylelint-plugin'], + extends: ['@stylistic/stylelint-config'], + rules: { + // overrides to comply with config v3 + '@stylistic/indentation': 'tab', + '@stylistic/string-quotes': 'single', + '@stylistic/selector-list-comma-newline-after': 'always-multi-line', + } +} diff --git a/configs/linting.js b/configs/linting.js new file mode 100644 index 0000000..5eef5e5 --- /dev/null +++ b/configs/linting.js @@ -0,0 +1,95 @@ +/*! + * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +const additionalPseudoSelectors = [ + // Vue