Skip to content

Commit

Permalink
Docs typo fixes, readability
Browse files Browse the repository at this point in the history
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
  • Loading branch information
mattxwang and ybiquitous committed Apr 20, 2023
1 parent 206c67d commit 7efd26d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/rules/color-function-notation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ a { color: hsl(.75turn, 60%, 70%) }

Ignore color functions containing variables.

Given
Given:

```json
["modern", { "ignore": ["with-var-inside"] }]
Expand All @@ -137,7 +137,7 @@ a {
}
```

Given
Given:

```json
["legacy", { "ignore": ["with-var-inside"] }]
Expand Down
6 changes: 3 additions & 3 deletions lib/rules/color-function-notation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ const rule = (primary, secondaryOptions, context) => {

if (
ignoreWithVarInside &&
nodes.filter((child) => child.type === 'function' && child.value.toLowerCase() === 'var')
.length > 0
)
nodes.some((child) => child.type === 'function' && child.value.toLowerCase() === 'var')
) {
return;
}

if (!LEGACY_NOTATION_FUNCS.has(value.toLowerCase())) return;

Expand Down

0 comments on commit 7efd26d

Please sign in to comment.