Skip to content

Commit 1fefc1b

Browse files
committed
fix(css): Allow double dash in custom property names
For component tokens in the format `--component--box--width`
1 parent 8ee807d commit 1fefc1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configurations/css/rules/enforce-conventions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { KEBAB_CASE, WARNING } from '../../../utils/constants.js';
1+
import { KEBAB_CASE, KEBAB_CASE_ALLOW_DOUBLE, WARNING } from '../../../utils/constants.js';
22

33
export default {
44
rules: {
@@ -397,7 +397,7 @@ export default {
397397

398398
// Specify a pattern for custom properties
399399
// https://stylelint.io/user-guide/rules/list/custom-property-pattern/
400-
'custom-property-pattern': [KEBAB_CASE, {
400+
'custom-property-pattern': [KEBAB_CASE_ALLOW_DOUBLE, {
401401
message: 'Expected custom property name to be kebab-case',
402402
}],
403403

0 commit comments

Comments
 (0)