Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

fix: rename deprecated declaration-property-unit-whitelist rule #267

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions __tests__/__snapshots__/selectors.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Array [
Object {
"column": 15,
"line": 18,
"rule": "declaration-property-unit-whitelist",
"rule": "declaration-property-unit-allowed-list",
"severity": "error",
"text": "Unexpected unit \\"%\\" for property \\"line-height\\" (declaration-property-unit-whitelist)",
"text": "Unexpected unit \\"%\\" for property \\"line-height\\" (declaration-property-unit-allowed-list)",
},
Object {
"column": 1,
Expand Down
4 changes: 2 additions & 2 deletions __tests__/__snapshots__/values.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Array [
Object {
"column": 15,
"line": 12,
"rule": "declaration-property-unit-whitelist",
"rule": "declaration-property-unit-allowed-list",
"severity": "error",
"text": "Unexpected unit \\"em\\" for property \\"line-height\\" (declaration-property-unit-whitelist)",
"text": "Unexpected unit \\"em\\" for property \\"line-height\\" (declaration-property-unit-allowed-list)",
},
Object {
"column": 15,
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = {
'declaration-colon-newline-after': 'always-multi-line',
'declaration-colon-space-after': 'always-single-line',
'declaration-colon-space-before': 'never',
'declaration-property-unit-whitelist': {
'declaration-property-unit-allowed-list': {
'line-height': [ 'px' ],
},
'font-family-name-quotes': 'always-where-recommended',
Expand Down