Skip to content

Commit 966237c

Browse files
committed
add test
1 parent 6f1cc06 commit 966237c

10 files changed

+182
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"options": [["h1", "h2", "h3", "h4", "h5", "h6"]]
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
- message: Unexpected use of forbidden HTML element h1.
2+
line: 1
3+
column: 1
4+
suggestions: null
5+
- message: Unexpected use of forbidden HTML element h2.
6+
line: 2
7+
column: 1
8+
suggestions: null
9+
- message: Unexpected use of forbidden HTML element h3.
10+
line: 3
11+
column: 1
12+
suggestions: null
13+
- message: Unexpected use of forbidden HTML element h4.
14+
line: 4
15+
column: 1
16+
suggestions: null
17+
- message: Unexpected use of forbidden HTML element h5.
18+
line: 5
19+
column: 1
20+
suggestions: null
21+
- message: Unexpected use of forbidden HTML element h6.
22+
line: 6
23+
column: 1
24+
suggestions: null
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<h1>Main Title - H1</h1>
2+
<h2>Subtitle - H2</h2>
3+
<h3>Subsection Title - H3</h3>
4+
<h4>Sub-Subsection Title - H4</h4>
5+
<h5>Minor Title - H5</h5>
6+
<h6>Minor Subtitle - H6</h6>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"options": [
3+
{
4+
"elements": ["h1", "h2", "h3", "h4", "h5", "h6"],
5+
"message": "Prefer use of our custom <Heading /> component"
6+
},
7+
{
8+
"elements": ["marquee"],
9+
"message": "Do not use deprecated HTML tags"
10+
}
11+
]
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
- message: Prefer use of our custom <Heading /> component
2+
line: 1
3+
column: 1
4+
suggestions: null
5+
- message: Prefer use of our custom <Heading /> component
6+
line: 2
7+
column: 1
8+
suggestions: null
9+
- message: Prefer use of our custom <Heading /> component
10+
line: 3
11+
column: 1
12+
suggestions: null
13+
- message: Prefer use of our custom <Heading /> component
14+
line: 4
15+
column: 1
16+
suggestions: null
17+
- message: Prefer use of our custom <Heading /> component
18+
line: 5
19+
column: 1
20+
suggestions: null
21+
- message: Prefer use of our custom <Heading /> component
22+
line: 6
23+
column: 1
24+
suggestions: null
25+
- message: Do not use deprecated HTML tags
26+
line: 8
27+
column: 1
28+
suggestions: null
29+
- message: Do not use deprecated HTML tags
30+
line: 10
31+
column: 1
32+
suggestions: null
33+
- message: Do not use deprecated HTML tags
34+
line: 12
35+
column: 1
36+
suggestions: null
37+
- message: Do not use deprecated HTML tags
38+
line: 19
39+
column: 3
40+
suggestions: null
41+
- message: Do not use deprecated HTML tags
42+
line: 23
43+
column: 3
44+
suggestions: null
45+
- message: Prefer use of our custom <Heading /> component
46+
line: 27
47+
column: 3
48+
suggestions: null
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<h1>Main Title - H1</h1>
2+
<h2>Subtitle - H2</h2>
3+
<h3>Subsection Title - H3</h3>
4+
<h4>Sub-Subsection Title - H4</h4>
5+
<h5>Minor Title - H5</h5>
6+
<h6>Minor Subtitle - H6</h6>
7+
8+
<marquee>This text will scroll from right to left</marquee>
9+
10+
<marquee direction="up">This text will scroll from bottom to top</marquee>
11+
12+
<marquee
13+
direction="down"
14+
width="250"
15+
height="200"
16+
behavior="alternate"
17+
style="border:solid"
18+
>
19+
<marquee behavior="alternate"> This text will bounce </marquee>
20+
</marquee>
21+
22+
<div>
23+
<marquee>This text will scroll from right to left</marquee>
24+
</div>
25+
26+
<div>
27+
<h6>Minor Subtitle - H6</h6>
28+
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"options": [["h1", "h2", "h3", "h4", "h5", "h6"]]
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<div style="font-size: 2em; font-weight: bold;">This is a title</div>
2+
<div style="font-size: 1.5em; font-weight: bold;">This is a subtitle</div>
3+
<p>This is a paragraph. Some sample text goes here.</p>
4+
<ul>
5+
<li>This is</li>
6+
<li>a list item</li>
7+
</ul>
8+
<table>
9+
<tr>
10+
<td>Table Cell 1</td>
11+
<td>Table Cell 2</td>
12+
</tr>
13+
<tr>
14+
<td>Table Cell 3</td>
15+
<td>Table Cell 4</td>
16+
</tr>
17+
</table>
18+
<a href="https://example.com">This is a hyperlink to example.com</a>
19+
<form>
20+
<label for="fname">First name:</label><br />
21+
<input type="text" id="fname" name="fname" /><br />
22+
<input type="submit" value="Submit" />
23+
</form>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"options": [
3+
{
4+
"elements": ["h1", "h2", "h3", "h4", "h5", "h6"],
5+
"message": "Prefer use of our custom <Heading /> component"
6+
},
7+
{
8+
"elements": ["marquee"],
9+
"message": "Do not use deprecated HTML tags"
10+
}
11+
]
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<div style="font-size: 2em; font-weight: bold;">This is a title</div>
2+
<div style="font-size: 1.5em; font-weight: bold;">This is a subtitle</div>
3+
<p>This is a paragraph. Some sample text goes here.</p>
4+
<ul>
5+
<li>This is</li>
6+
<li>a list item</li>
7+
</ul>
8+
<table>
9+
<tr>
10+
<td>Table Cell 1</td>
11+
<td>Table Cell 2</td>
12+
</tr>
13+
<tr>
14+
<td>Table Cell 3</td>
15+
<td>Table Cell 4</td>
16+
</tr>
17+
</table>
18+
<a href="https://example.com">This is a hyperlink to example.com</a>
19+
<form>
20+
<label for="fname">First name:</label><br />
21+
<input type="text" id="fname" name="fname" /><br />
22+
<input type="submit" value="Submit" />
23+
</form>

0 commit comments

Comments
 (0)