Skip to content

Commit

Permalink
ignore some specific sass lint lines
Browse files Browse the repository at this point in the history
  • Loading branch information
joeworkman committed Sep 27, 2024
1 parent 7ab3074 commit a883b6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scss/xy-grid/_cell.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
@each $bp, $mg in $margin-gutter {
$mgc: rem-calc($mg);
@if $mgc == 0 {
// sass-lint:disable zero-unit
$mgc: 0rem;
}
$size-css: if($mg == 0, $size-raw, calc(#{$size-raw} - #{$mg}));
Expand All @@ -115,6 +116,7 @@
// Make sure that 0 is translated in 0rem for calc()
$mgc: rem-calc($margin-gutter);
@if $mgc == 0 {
// sass-lint:disable zero-unit
$mgc: 0rem;
}
$css-size: if($margin-gutter == 0, $size-raw, calc(#{$size-raw} - #{$mgc}));
Expand Down
2 changes: 2 additions & 0 deletions scss/xy-grid/_frame.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
$gutter: rem-calc($gutter);
// Make sure that 0 is translated in 0rem for calc()
@if $gutter == 0 {
// sass-lint:disable zero-unit
$gutter: 0rem;
}
height: calc(#{$unit} + #{$gutter});
Expand All @@ -45,6 +46,7 @@
$gutter: rem-calc($gutter);
// Make sure that 0 is translated in 0rem for calc()
@if $gutter == 0 {
// sass-lint:disable zero-unit
$gutter: 0rem;
}
width: calc(#{$unit} + #{$gutter});
Expand Down
1 change: 1 addition & 0 deletions scss/xy-grid/_position.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
// Make sure that 0 is translated in 0rem for calc()
$gutter: rem-calc(xy-cell-gutters($gutters, $breakpoint));
@if $gutter == 0 {
// sass-lint:disable zero-unit
$gutter: 0rem;
}
$offset: if($gutter == 0, $size, calc(#{$size} + #{$gutter} / 2));
Expand Down

0 comments on commit a883b6e

Please sign in to comment.