Skip to content

Commit 26ce1a4

Browse files
committed
feature/prettier added prettier, updated packages
1 parent 3a426a0 commit 26ce1a4

14 files changed

+1422
-896
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
node-version: [12.x]
14+
node-version: [14.x]
1515

1616
steps:
1717
- uses: actions/checkout@v2

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ dist
1515
raw_reports
1616
cypress/screenshots
1717
cypress/videos
18+
reports

.linthtmlrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
],
3939
"tag-name-lowercase": true,
4040
"tag-name-match": true,
41-
"tag-self-close": "never",
41+
"tag-self-close": false,
4242
"tag-close": true,
4343
"text-ignore-regex": "&",
4444
"title-no-dup": true,

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/node_modules
2+
/dist
3+
**/*.test.js

.prettierrc

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false,
4+
"semi": true,
5+
"singleQuote": true,
6+
"trailingComma": "all",
7+
"printWidth": 80,
8+
"overrides": [
9+
{
10+
"files": "*.html",
11+
"options": {
12+
"parser": "html",
13+
"insertPragma": false,
14+
"endOfLine": "auto",
15+
"singleAttributePerLine": true,
16+
"htmlWhitespaceSensitivity": "ignore"
17+
}
18+
}
19+
]
20+
}

dist/index.html

+14-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Title</title><link rel="stylesheet" href="index.2bd354d0.css"><script src="index.41579541.js" defer></script></head><body> <div class="wall"> <img src="spider.0533d13c.svg" class="spider" alt="spider"> </div> </body></html>
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Title</title>
6+
<link rel="stylesheet" href="/index.971c2ea4.css">
7+
<script src="/index.f75de5e1.js" defer=""></script>
8+
</head>
9+
<body>
10+
<div class="wall">
11+
<img src="/spider.7c0d4027.svg" class="spider" alt="spider">
12+
</div>
13+
<script src="/js_task-move-spider-DOM.59712999.js"></script></body>
14+
</html>

0 commit comments

Comments
 (0)