Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

Commit 9b3e8c4

Browse files
ETLaurentEtienne Laurent
andauthored
add global mixins to the @apostrophecms/stylelint-no-mixed-decls plugin configuration (#32)
* add global mixins to the `@apostrophecms/stylelint-no-mixed-decls` plugin configuration * upgrade stylelint-no-mixed-decls --------- Co-authored-by: Etienne Laurent <git.sabbath464@passmail.net>
1 parent ed530a4 commit 9b3e8c4

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

.stylelintrc.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,24 @@
246246
"scss/dollar-variable-pattern": "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",
247247
"scss/load-partial-extension": "never",
248248
"scss/no-duplicate-mixins": true,
249-
"@apostrophecms/stylelint-no-mixed-decls": true
249+
"@apostrophecms/stylelint-no-mixed-decls": [
250+
true,
251+
{
252+
"contain-nested": [
253+
"type-base",
254+
"type-help",
255+
"type-small",
256+
"type-label",
257+
"type-large",
258+
"type-title",
259+
"type-display",
260+
"apos-input",
261+
"link-primary",
262+
"apos-transition",
263+
"apos-button-reset"
264+
]
265+
}
266+
]
250267
},
251268
"overrides": [
252269
{

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## UNRELEASED
8+
9+
### Changed
10+
11+
* Add global mixins to the `@apostrophecms/stylelint-no-mixed-decls` plugin configuration.
12+
713
## 4.3.0 (2025-06-11)
814

915
### Changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"stylelint": ">= 16.1.0"
2626
},
2727
"dependencies": {
28-
"@apostrophecms/stylelint-no-mixed-decls": "^1.0.0",
28+
"@apostrophecms/stylelint-no-mixed-decls": "^1.2.0",
2929
"stylelint-config-html": "^1.1.0",
3030
"stylelint-config-standard": "^36.0.0",
3131
"stylelint-declaration-strict-value": "^1.10.7",
@@ -41,4 +41,4 @@
4141
"mocha": "^10.2.0",
4242
"postcss-scss": "^4.0.9"
4343
}
44-
}
44+
}

0 commit comments

Comments
 (0)