-
-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: documentation for new configuration structure (#447)
* docs: new configuration structure for alt-require * docs: new configuration structure for attr-lowercase * docs: new configuration structure for attr-no-duplication * docs: new configuration structure for attr-no-unnecessary-whitespace * docs: update getting started * docs: add missing rules * docs: fix broken links * docs: new configuration structure for attr-sorted * docs: remove unnecessary prettier-ignore * docs: new configuration structure for attr-unsafe-chars * docs: new configuration structure for attr-value-double-quotes * docs: new configuration structure for attr-value-not-empty * docs: use texts from rules * docs: new configuration structure for attr-value-single-quotes * docs: new configuration structure for attr-whitespace * docs: new configuration structure for doctype-first * docs: new configuration structure for doctype-html5 * docs: remove empty-tag-not-self-closed * docs: new configuration structure for head-script-disabled * docs: new configuration structure for href-abs-or-rel * docs: new configuration structure for id-class-ad-disabled * docs: new configuration structure for id-class-value * docs: new configuration structure for id-unique * docs: new configuration structure for inline-script-disabled * docs: new configuration structure for inline-style-disabled * docs: new configuration structure for input-requires-label * docs: new configuration structure * docs: update doc attr-whitespace * docs: update doc tags-check * docs: update doc tagname-specialchars * docs: update doc
- Loading branch information
Shinigami
committed
Jul 10, 2020
1 parent
f8a80ee
commit 98ec414
Showing
35 changed files
with
1,340 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
id: attr-sorted | ||
title: attr-sorted | ||
--- | ||
|
||
Attribute tags must be in proper order. | ||
|
||
## Possible Configuration Values | ||
|
||
```json | ||
{ | ||
"attr-sorted": "off", | ||
"attr-sorted": "warn", | ||
"attr-sorted": "error", | ||
"attr-sorted": ["off"], | ||
"attr-sorted": ["warn"], | ||
"attr-sorted": ["error"] | ||
} | ||
``` | ||
|
||
## Default | ||
|
||
```json | ||
{ "attr-sorted": "off" } | ||
``` | ||
|
||
--- | ||
|
||
## Examples | ||
|
||
Examples of **correct** code for this rule: | ||
|
||
```html | ||
<img alt="test" src="test.png" /> | ||
``` | ||
|
||
Examples of **incorrect** code for this rule: | ||
|
||
```html | ||
<img src="test.png" alt="test" /> | ||
``` | ||
|
||
--- | ||
|
||
## When Not To Use It | ||
|
||
If your project will use attributes in an unsorted order. | ||
|
||
## Version | ||
|
||
This rule was introduced in HTMLHint `v0.11.0`. |
Oops, something went wrong.