Skip to content

Commit 28d8f97

Browse files
committed
html lint
1 parent c8e9f20 commit 28d8f97

File tree

6 files changed

+478
-367
lines changed

6 files changed

+478
-367
lines changed

.eslintrc.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ module.exports = {
99
'eslint:recommended'
1010
],
1111
plugins: [
12-
'html'
13-
]
12+
'html',
13+
'@html-eslint'
14+
],
15+
overrides: [
16+
{
17+
files: ['*.html'],
18+
parser: '@html-eslint/parser',
19+
extends: ['plugin:@html-eslint/recommended']
20+
}
21+
],
22+
rules: {
23+
'@html-eslint/indent': ['error', 2]
24+
}
1425
}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
node_modules/
2-
.vscode/
32
build/

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll.eslint": true
4+
},
5+
"eslint.validate": [
6+
"javascript",
7+
"html"
8+
]
9+
}

options.html

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,41 @@
11
<!DOCTYPE html>
22
<html lang="en" id="html">
33

4-
<head>
5-
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
6-
<meta charset="utf-8">
7-
<meta name="viewport" content="width=device-width, initial-scale=1">
8-
<link rel="stylesheet" href="options.css">
9-
</head>
4+
<head>
5+
<title>Lowcarb</title>
6+
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
7+
<meta charset="utf-8">
8+
<meta name="viewport" content="width=device-width, initial-scale=1">
9+
<link rel="stylesheet" href="options.css">
10+
</head>
1011

11-
<body id="lowcarb">
12-
<header>
13-
<h3 id="div-selectCookies"></h3>
14-
</header>
12+
<body id="lowcarb">
13+
<header>
14+
<h3 id="div-selectCookies"></h3>
15+
</header>
1516

16-
<div class="lc-table">
17-
<div id="domains-container"></div>
18-
</div>
17+
<div class="lc-table">
18+
<div id="domains-container"></div>
19+
</div>
1920

20-
<div class="lc-settings-container">
21-
<label class="toggle-label" for="btn-removeOnStartup">
22-
<button id="btn-removeOnStartup" class="toggle-button" aria-pressed="false"></button>
23-
<span id="l-removeOnStartup"></span>
24-
</label>
21+
<div class="lc-settings-container">
22+
<label class="toggle-label" for="btn-removeOnStartup">
23+
<button id="btn-removeOnStartup" class="toggle-button" aria-pressed="false"></button>
24+
<span id="l-removeOnStartup"></span>
25+
</label>
2526

26-
<label class="toggle-label" for="btn-notify">
27-
<button id="btn-notify" class="toggle-button" aria-pressed="false"></button>
28-
<span id="l-notifyCookiesRemoved"></span>
29-
</label>
30-
</div>
27+
<label class="toggle-label" for="btn-notify">
28+
<button id="btn-notify" class="toggle-button" aria-pressed="false"></button>
29+
<span id="l-notifyCookiesRemoved"></span>
30+
</label>
31+
</div>
3132

32-
<footer class="lc-footer">
33-
<button id="btn-removeCookies" type="button" class="lc-button"></button>
34-
<button id="btn-refresh" type="button" class="lc-button"></button>
35-
</footer>
33+
<footer class="lc-footer">
34+
<button id="btn-removeCookies" type="button" class="lc-button"></button>
35+
<button id="btn-refresh" type="button" class="lc-button"></button>
36+
</footer>
3637

37-
<script type="module" src="src/options/translate.js"></script>
38-
<script type="module" src="src/options/index.js"></script>
39-
</body>
38+
<script type="module" src="src/options/translate.js"></script>
39+
<script type="module" src="src/options/index.js"></script>
40+
</body>
4041
</html>

0 commit comments

Comments
 (0)