Skip to content

Commit

Permalink
Disable and use renamed stylelint rule to avoid deprecation warning
Browse files Browse the repository at this point in the history
Fixes #103
  • Loading branch information
ocean90 committed Dec 12, 2020
1 parent f1b7c2e commit 1d57244
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/stylelint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ module.exports = {
'function-parentheses-space-inside': 'always-single-line',
'function-comma-space-after': 'always-single-line',
'number-leading-zero': 'never',
// Disable and use renamed rule to avoid deprecation warning until
// a new version of stylelint-config-wordpress has been released.
'declaration-property-unit-whitelist': null,
'declaration-property-unit-allowed-list': {
'line-height': [ 'px' ],
},
'selector-class-pattern': [
// See https://en.bem.info/methodology/naming-convention/#two-dashes-style.
'^(?<block>(?:[a-z][a-z0-9]*)(?:-[a-z0-9]+)*)(?<element>(?:__[a-z][a-z0-9]*(?:-[a-z0-9]+)*))?(?<modifier>(?:--[a-z][a-z0-9]*)(?:-[a-z0-9]+)*)?$',
Expand Down

0 comments on commit 1d57244

Please sign in to comment.