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

Commit e72e730

Browse files
ETLaurentEtienne Laurent
andauthored
use @apostrophecms/stylelint-no-mixed-decl plugin as an external package (#30)
* use `@apostrophecms/require-nested-after-include` plugin as an external package * use @apostrophecms/stylelint-no-mixed-decls --------- Co-authored-by: Etienne Laurent <git.sabbath464@passmail.net>
1 parent 3b9a2dd commit e72e730

File tree

8 files changed

+10
-79
lines changed

8 files changed

+10
-79
lines changed

.stylelintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"stylelint-declaration-strict-value",
55
"stylelint-order",
66
"stylelint-scss",
7-
"./plugins/require-nested-after-include.js"
7+
"@apostrophecms/stylelint-no-mixed-decls"
88
],
99
"ignoreFiles": ["node_modules/**/*", "**/node_modules/**/*"],
1010
"rules": {
@@ -246,7 +246,7 @@
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-
"custom/require-nested-after-include": true
249+
"@apostrophecms/stylelint-no-mixed-decls": true
250250
},
251251
"overrides": [
252252
{

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+
* Extract `custom/require-nested-after-include` rule to a standalone `@apostrophecms/stylelint-no-mixed-decls` plugin and use it.
12+
713
## 4.2.2 (2025-01-27)
814

915
### Changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"stylelint": ">= 16.1.0"
2626
},
2727
"dependencies": {
28+
"@apostrophecms/stylelint-no-mixed-decls": "^1.0.0",
2829
"stylelint-config-html": "^1.1.0",
2930
"stylelint-config-standard": "^36.0.0",
3031
"stylelint-declaration-strict-value": "^1.10.7",
@@ -40,4 +41,4 @@
4041
"mocha": "^10.2.0",
4142
"postcss-scss": "^4.0.9"
4243
}
43-
}
44+
}

plugins/require-nested-after-include.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

test/plugins/require-nested-after-include/bad.scss

Lines changed: 0 additions & 5 deletions
This file was deleted.

test/plugins/require-nested-after-include/good-1.scss

Lines changed: 0 additions & 7 deletions
This file was deleted.

test/plugins/require-nested-after-include/good-2.scss

Lines changed: 0 additions & 3 deletions
This file was deleted.

test/plugins/require-nested-after-include/require-nested-after-include.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)