Skip to content

Commit

Permalink
Add additional units to default config for PropertyUnits
Browse files Browse the repository at this point in the history
  • Loading branch information
sds committed Apr 8, 2015
1 parent 5cfda10 commit faab8a5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* Fix `DeclarationOrder` false positives on lines of the same type of node
* Fix `PropertyUnits` false positives on unicode escape sequences and string
values that look like units
* Add additional units to default configuration for `PropertyUnits`, including
durations, frequencies, angles, and resolutions

## 0.36.0

Expand Down
11 changes: 10 additions & 1 deletion config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,16 @@ linters:

PropertyUnits:
enabled: true
global: ['em', 'ex', '%', 'px', 'ch', 'cm', 'mm', 'in', 'pt', 'pc', 'rem', 'vh', 'vw', 'vmin', 'vmax']
global: [
'ch', 'em', 'ex', 'rem', # Font-relative lengths
'cm', 'in', 'mm', 'pc', 'pt', 'px', 'q', # Absolute lengths
'vh', 'vw', 'vmin', 'vmax', # Viewport-percentage lengths
'deg', 'grad', 'rad', 'turn', # Angle
'ms', 's', # Duration
'Hz', 'kHz', # Frequency
'dpi', 'dpcm', 'dppx', # Resolution
'%', # Other
]
properties: {}

PropertySortOrder:
Expand Down

0 comments on commit faab8a5

Please sign in to comment.