From 1d57244bcd8b5d6657b42e1d3748ed7a68171558 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Sat, 12 Dec 2020 17:26:05 +0100 Subject: [PATCH] Disable and use renamed stylelint rule to avoid deprecation warning Fixes https://github.com/wearerequired/coding-standards/issues/103 --- packages/stylelint-config/index.js | 6 ++++++ 1 file changed, 6 insertions(+) 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]+)*)?$',