diff --git a/packages/stylelint-config/index.js b/packages/stylelint-config/index.js index 3b4d751..99d459b 100644 --- a/packages/stylelint-config/index.js +++ b/packages/stylelint-config/index.js @@ -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. '^(?(?:[a-z][a-z0-9]*)(?:-[a-z0-9]+)*)(?(?:__[a-z][a-z0-9]*(?:-[a-z0-9]+)*))?(?(?:--[a-z][a-z0-9]*)(?:-[a-z0-9]+)*)?$',