Skip to content

Commit

Permalink
Porting from #314
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio-Laguna committed Aug 2, 2023
1 parent d9246a6 commit e7d6f97
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions packages/stylelint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ module.exports = {
ignore: ['stylelint-commands'],
},
],
'custom-property-pattern': [
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*$|^wp--([a-z][a-z0-9]*)(--[a-z0-9]+)*$',
{
message: 'Expected custom property name to be kebab-case or wp--kebab--case',
},
],
'declaration-block-no-duplicate-properties': [
true,
{
Expand Down Expand Up @@ -59,14 +65,7 @@ module.exports = {
'scale-unlimited/declaration-strict-value': [
'/color/',
{
ignoreValues: [
'currentColor',
'currentcolor',
'inherit',
'initial',
'transparent',
'unset',
],
ignoreValues: ['currentcolor', 'inherit', 'initial', 'transparent', 'unset'],
},
],
'selector-attribute-quotes': 'always',
Expand Down

0 comments on commit e7d6f97

Please sign in to comment.