diff --git a/CHANGELOG.md b/CHANGELOG.md index 28e1fe02..935e9ef0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/config/default.yml b/config/default.yml index 781b63be..345e8334 100644 --- a/config/default.yml +++ b/config/default.yml @@ -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: