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

Commit

Permalink
Merge pull request #267 from SergiuNegara/declaration-property-unit-a…
Browse files Browse the repository at this point in the history
…llowed-list

fix: rename deprecated `declaration-property-unit-whitelist` rule
  • Loading branch information
ntwb committed Sep 3, 2020
2 parents ec5a2bf + 0a7c161 commit 7816e56
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit 7816e56

Please sign in to comment.