Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions website/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ export default defineConfig({
link: '/configuration/',
},
{
label: 'Rules',
label: 'Usage',
collapsed: true,
autogenerate: { directory: 'rules' },
autogenerate: { directory: 'usage' },
},
{
label: 'Usage',
label: 'Rules',
collapsed: true,
autogenerate: { directory: 'usage' },
autogenerate: { directory: 'rules' },
},
{
label: 'VS Code Extension',
Expand Down
4 changes: 2 additions & 2 deletions website/src/content/docs/rules/alt-require.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ Level: <Badge text="Warning" variant="caution" />
- `true`: enable rule
- `false`: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<img src="test.png" alt="test" />
<input type="image" alt="test" />
<area shape="circle" coords="180,139,14" href="test.html" alt="test" />
```

### The following patterns are considered rule violations:
### The following patterns are considered rule violations

```html
<img src="test.png" />
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/rules/attr-no-duplication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Level: <Badge text="Error" variant="danger" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<img src="a.png" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Level: <Badge text="Error" variant="danger" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<div title="a"></div>
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/rules/attr-sorted.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Level: <Badge text="Error" variant="danger" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<div img="image" meta="meta" font="font"></div>
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/rules/attr-unsafe-chars.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Level: <Badge text="Warning" variant="caution" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Level: <Badge text="Error" variant="danger" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<a href="" title="abc"></a>
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/rules/attr-value-not-empty.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Level: <Badge text="Warning" variant="caution" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<input type="button" disabled="disabled" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Level: <Badge text="Error" variant="danger" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<a href='' title='abc'></a>
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/rules/attr-whitespace.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Level: <Badge text="Error" variant="danger" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<div title="a"></div>
Expand Down
4 changes: 2 additions & 2 deletions website/src/content/docs/rules/button-type-require.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ Level: <Badge text="Warning" variant="caution" />
- `true`: enable rule
- `false`: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<button type="button">Click me</button>
<button type="submit">Submit form</button>
<button type="reset">Reset form</button>
```

### The following patterns are considered rule violations:
### The following patterns are considered rule violations

```html
<button>No type specified</button>
Expand Down
4 changes: 2 additions & 2 deletions website/src/content/docs/rules/doctype-first.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Level: <Badge text="Error" variant="danger" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<!DOCTYPE html>
Expand All @@ -28,7 +28,7 @@ Level: <Badge text="Error" variant="danger" />
<html></html>
```

### The following patterns are considered rule violations:
### The following patterns are considered rule violations

```html
<html></html>
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/rules/doctype-html5.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Level: <Badge text="Warning" variant="caution" />
1. true: enable rule
2. false: disable rule

### The following pattern is **not** considered a rule violations:
### The following pattern is **not** considered a rule violations

```html
<!DOCTYPE html>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Level: <Badge text="Warning" variant="caution" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<br>
Expand Down
4 changes: 2 additions & 2 deletions website/src/content/docs/rules/h1-require.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Level: <Badge text="Warning" variant="caution" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<html><body><h1>Title</h1></body></html>
```

### The following patterns are considered rule violations:
### The following patterns are considered rule violations

```html
<html><body><p>No heading</p></body></html>
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/rules/head-script-disabled.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Level: <Badge text="Warning" variant="caution" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<body>
Expand Down
4 changes: 2 additions & 2 deletions website/src/content/docs/rules/href-abs-or-rel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ Level: <Badge text="Warning" variant="caution" />
2. rel: relative mode
3. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
abs: <a href="https://www.htmlhint.com/">test1</a> <a href="https://www.github.com/">test2</a>
abs: <a href="https://htmlhint.com/">test1</a> <a href="https://github.com/">test2</a>
rel: <a href="test.html">test1</a> <a href="../test.html">test2</a>

```
4 changes: 2 additions & 2 deletions website/src/content/docs/rules/html-lang-require.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Level: <Badge text="Warning" variant="caution" />
1. true: enable rule
2. false: disable rule

### The following pattern is **not** considered rule violations:
### The following pattern is **not** considered rule violations

```html
<html lang="en"></html>
```

### The following patterns are considered a rule violations:
### The following patterns are considered a rule violations

```html
<!-- missing lang tag -->
Expand Down
4 changes: 2 additions & 2 deletions website/src/content/docs/rules/id-class-ad-disabled.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ Level: <Badge text="Warning" variant="caution" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<div id="adcontainer"></div>
```

### The following pattern is considered a rule violation:
### The following patterns are considered rule violations

```html
<div id="ad-container"></div>
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/rules/id-class-value.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Level: <Badge text="Warning" variant="caution" />
3. hump: enable rule ( aaaBbb )
4. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
underline: <div id="aaa_bbb">
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/rules/id-unique.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Level: <Badge text="Error" variant="danger" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<div id="id1"></div><div id="id2"></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Level: <Badge text="Warning" variant="caution" />
1. true: enable rule
2. false: disable rule

### The following pattern are considered violations:
### The following pattern are considered violations

```html
<img src="test.gif" onclick="alert(1);">
Expand Down
4 changes: 2 additions & 2 deletions website/src/content/docs/rules/input-requires-label.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Level: <Badge text="Warning" variant="caution" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<input type="password">
Expand All @@ -28,7 +28,7 @@ Level: <Badge text="Warning" variant="caution" />
<input type="password" /> <label for="something"/>
```

### The following patterns are considered rule violations:
### The following patterns are considered rule violations

```html
<label for="some-id"/><input id="some-id" type="password" />
Expand Down
4 changes: 2 additions & 2 deletions website/src/content/docs/rules/main-require.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Level: <Badge text="Warning" variant="caution" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<html><body><main>Content</main></body></html>
Expand All @@ -27,7 +27,7 @@ Level: <Badge text="Warning" variant="caution" />
<html><body><header>Header</header><main>Content</main><footer>Footer</footer></body></html>
```

### The following patterns are considered rule violations:
### The following patterns are considered rule violations

```html
<html><body><p>No main tag</p></body></html>
Expand Down
4 changes: 2 additions & 2 deletions website/src/content/docs/rules/meta-description-require.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Level: <Badge text="Error" variant="danger" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<html><head><meta name="description" content="A description of the page"></head></html>
```

### The following patterns are considered rule violations:
### The following patterns are considered rule violations

```html
<!-- Missing meta description -->
Expand Down
4 changes: 2 additions & 2 deletions website/src/content/docs/rules/meta-viewport-require.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Level: <Badge text="Error" variant="danger" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<html><head><meta name="viewport" content="width=device-width, initial-scale=1"></head></html>
```

### The following patterns are considered rule violations:
### The following patterns are considered rule violations

```html
<!-- Missing meta viewport -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Level: <Badge text="Warning" variant="caution" />
}
```

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
 <img src="tab.png" />
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/rules/spec-char-escape.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Level: <Badge text="Error" variant="danger" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered violations:
### The following patterns are **not** considered violations

```html
<span>aaa&gt;bbb&lt;ccc</span>
Expand Down
4 changes: 2 additions & 2 deletions website/src/content/docs/rules/src-not-empty.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Level: <Badge text="Error" variant="danger" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<img src="test.png" />
Expand All @@ -29,7 +29,7 @@ Level: <Badge text="Error" variant="danger" />
<object data="test.swf">
```

### The following patterns are considered violations:
### The following patterns are considered violations

```html
<img src />
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/rules/tag-pair.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Level: <Badge text="Error" variant="danger" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<ul><li></li></ul>
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/rules/tagname-lowercase.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Level: <Badge text="Error" variant="danger" />
2. false: disable rule
3. ['clipPath', 'test']: Ignore some tagname name

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<span><div>
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/rules/tagname-specialchars.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Level: <Badge text="Error" variant="danger" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<a href=""></a><span>test</span>
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/rules/title-require.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Level: <Badge text="Error" variant="danger" />
1. true: enable rule
2. false: disable rule

### The following patterns are **not** considered rule violations:
### The following patterns are **not** considered rule violations

```html
<html><head><title>test</title></head></html>
Expand Down
Loading
Loading