Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph118 committed Dec 13, 2020
1 parent a33e420 commit 2f1280f
Showing 1 changed file with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions src/rules/no-duplicate-dollar-variables/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ $a: 1;
$b: 2;
}
```

___
### `ignoreInside: ["at-rule", "nested-at-rule"]`

#### `"at-rule"`
Expand Down Expand Up @@ -107,7 +107,6 @@ $a: 1;
}
}
```

#### `"nested-at-rule"`

Ignores dollar variables that are inside nested at-rules (`@media`, `@mixin`, etc.).
Expand All @@ -128,7 +127,7 @@ $a: 1;
}
}
```

___
### `ignoreInsideAtRules: ["array", "of", "at-rules"]`

Ignores all variables that are inside specified at-rules.
Expand Down Expand Up @@ -156,3 +155,35 @@ $a: 1;
$a: 2;
}
```
___
### `ignoreDefaults: [boolean, number]`

Ignores all or an amount of variables containing the `!default` keyword.

Given:

```json
{ "ignoreDefaults": true }
```

The following patterns are _not_ considered warnings:

```scss
$a: 5 !default;
$a: $a + 1;

$a: 15 !default;
```

Given:

```json
{ "ignoreDefaults": 1 }
```

The following patterns are _not_ considered warnings:

```scss
$a: 5 !default;
$a: $a + 1;
```

0 comments on commit 2f1280f

Please sign in to comment.