Skip to content

Commit

Permalink
fix: update length-zero-no-unit stylelint rule (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
duryno authored Feb 21, 2022
1 parent fb9ec8f commit d104c20
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cfg/stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ module.exports = {
extends: ['stylelint-config-standard-scss', 'stylelint-config-prettier'],
rules: {
'no-empty-source': null,
'length-zero-no-unit': true,
'color-hex-length': 'short',
'length-zero-no-unit': [
true,
// keep units in css variables because their absence breaks css calculations
{ ignore: ['custom-properties'] },
],
// Prettier covers these rules already:
// 'color-hex-case': 'lower',
// 'number-leading-zero': 'always',
Expand Down

0 comments on commit d104c20

Please sign in to comment.