Skip to content

Commit

Permalink
Fix/improve documentation of attr-lowercase rule (#564)
Browse files Browse the repository at this point in the history
The "violation" example was identical to the non-violation one.

Also adjusted wording and capitalization for clarity and correctness.
  • Loading branch information
waldyrious authored Nov 11, 2020
1 parent 8007c42 commit 87501d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/user-guide/rules/attr-lowercase.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ Level: `error`

1. true: enable rule
2. false: disable rule
3. ['viewBox', 'test']: Ignore some attr name
3. ['viewBox', 'Test']: enable rule except for the given attribute names

The following pattern are **not** considered violations:
The following pattern is **not** considered a violation:

<!-- prettier-ignore -->
```html
<img src="test.png" alt="test" />
```

The following pattern is considered violation:
The following pattern is considered a violation:

<!-- prettier-ignore -->
```html
<img src="test.png" alt="test" />
<img SRC="test.png" ALT="test" />
```

0 comments on commit 87501d1

Please sign in to comment.