Skip to content

Commit

Permalink
Upgrade to stylelint-config-supple 4
Browse files Browse the repository at this point in the history
  • Loading branch information
bramsmulders committed Nov 3, 2021
1 parent 4559ef1 commit b2e62b7
Show file tree
Hide file tree
Showing 25 changed files with 387 additions and 1,639 deletions.
5 changes: 1 addition & 4 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"extends": "@supple-kit/stylelint-config-supple",
"ignoreFiles": [
"_test/css/*",
"vendor/**/*"
]
"ignoreFiles": ["_test/css/*", "vendor/**/*"]
}
6 changes: 3 additions & 3 deletions objects/aspect-ratio/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
========================================================================= */

$selector: '> *';
@if (defaults.$css-modules) {
@if defaults.$css-modules {
$selector: ':global(#{$selector})';
}

Expand All @@ -43,7 +43,7 @@ $selector: '> *';
* the ratio like this: (16/9)
*/
.o-aspect-ratio {
--ratio: (1/1); /* [1] */
--ratio: (1 / 1); /* [1] */
position: relative;
display: block;
block-size: 0;
Expand All @@ -64,7 +64,7 @@ $selector: '> *';

@each $ratio in variables.$ratios {
@each $a, $b in $ratio {
@if (meta.type-of($a) != number or meta.type-of($b) != number) {
@if meta.type-of($a) != number or meta.type-of($b) != number {
@error '`#{$a}` and `#{$b}` need to be numbers.';
}

Expand Down
2 changes: 1 addition & 1 deletion objects/flow/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

.o-flow {
$selector: '> * + *';
@if (defaults.$css-modules) {
@if defaults.$css-modules {
$selector: ':global(#{$selector})';
}

Expand Down
2 changes: 1 addition & 1 deletion objects/layout/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
========================================================================= */

$selector: '> *';
@if (defaults.$css-modules) {
@if defaults.$css-modules {
$selector: ':global(#{$selector})';
}

Expand Down
2 changes: 1 addition & 1 deletion objects/mesh/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
========================================================================= */

$selector: '> *';
@if (defaults.$css-modules) {
@if defaults.$css-modules {
$selector: ':global(#{$selector})';
}

Expand Down
Loading

0 comments on commit b2e62b7

Please sign in to comment.