Skip to content

Commit 731f46d

Browse files
committed
Prepare 38.0.0
1 parent 4ef026e commit 731f46d

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 38.0.0
4+
5+
- Removed: `stylelint` less than `16.18.0` from peer dependencies.
6+
- Changed: updated to [`[email protected]`](https://github.com/stylelint/stylelint-config-recommended/releases/tag/16.0.0).
7+
- Added: `color-function-alias-notation: "without-alpha"` rule.
8+
- Added: `container-name-pattern` (kebab-case with optional `--` prefix) rule.
9+
- Added: `layer-name-pattern` (kebab-case) rule.
10+
311
## 37.0.0
412

513
- Removed: `stylelint` less than `16.13.0` from peer dependencies.

index.js

+13
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module.exports = {
2323
},
2424
],
2525
'at-rule-no-vendor-prefix': true,
26+
'color-function-alias-notation': 'without-alpha',
2627
'color-function-notation': 'modern',
2728
'color-hex-length': 'short',
2829
'comment-empty-line-before': [
@@ -33,6 +34,12 @@ module.exports = {
3334
},
3435
],
3536
'comment-whitespace-inside': 'always',
37+
'container-name-pattern': [
38+
'^(--)?([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
39+
{
40+
message: (name) => `Expected container name "${name}" to be kebab-case`,
41+
},
42+
],
3643
'custom-property-empty-line-before': [
3744
'always',
3845
{
@@ -73,6 +80,12 @@ module.exports = {
7380
message: (name) => `Expected keyframe name "${name}" to be kebab-case`,
7481
},
7582
],
83+
'layer-name-pattern': [
84+
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
85+
{
86+
message: (name) => `Expected layer name "${name}" to be kebab-case`,
87+
},
88+
],
7689
'length-zero-no-unit': [
7790
true,
7891
{

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
]
4848
},
4949
"dependencies": {
50-
"stylelint-config-recommended": "^15.0.0"
50+
"stylelint-config-recommended": "^16.0.0"
5151
},
5252
"devDependencies": {
5353
"@stylelint/prettier-config": "^3.0.0",
@@ -60,10 +60,10 @@
6060
"npm-run-all": "^4.1.5",
6161
"prettier": "^3.5.3",
6262
"remark-cli": "^12.0.1",
63-
"stylelint": "^16.13.0"
63+
"stylelint": "^16.18.0"
6464
},
6565
"peerDependencies": {
66-
"stylelint": "^16.13.0"
66+
"stylelint": "^16.18.0"
6767
},
6868
"engines": {
6969
"node": ">=18.12.0"

0 commit comments

Comments
 (0)