Skip to content

Commit dc2cfdb

Browse files
committed
Fix tests and editorconfig
Signed-off-by: Christian König <[email protected]>
1 parent d0acd5f commit dc2cfdb

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

.devcontainer/devcontainer.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
22
"name": "Pi-hole web devcontainer",
33
"dockerFile": "Dockerfile",
4-
// Use 'postCreateCommand' to run commands after the container is created.
5-
"postCreateCommand": "npm install",
6-
"customizations": {
7-
// Configure properties specific to VS Code.
8-
"vscode": {
9-
"settings": {},
10-
"extensions": [
11-
"eamodio.gitlens",
12-
"EditorConfig.EditorConfig",
13-
"github.vscode-github-actions"
14-
]
15-
}
16-
},
4+
// Use 'postCreateCommand' to run commands after the container is created.
5+
"postCreateCommand": "npm install",
6+
"customizations": {
7+
// Configure properties specific to VS Code.
8+
"vscode": {
9+
"settings": {},
10+
"extensions": [
11+
"eamodio.gitlens",
12+
"EditorConfig.EditorConfig",
13+
"github.vscode-github-actions"
14+
]
15+
}
16+
},
1717
"containerEnv": {
1818
"GIT_EDITOR": "nano"
1919
},

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ indent_size = 2
1717
[*.js]
1818
indent_size = 2
1919

20-
[package.json]
20+
[*.json]
2121
indent_size = 2
2222

2323
[.yamllint.conf]

scripts/pi-hole/js/queries.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ function formatReplyTime(replyTime, type) {
230230
return replyTime < 1e-4
231231
? (1e6 * replyTime).toFixed(1) + " µs"
232232
: replyTime < 1
233-
? (1e3 * replyTime).toFixed(1) + " ms"
234-
: replyTime.toFixed(1) + " s";
233+
? (1e3 * replyTime).toFixed(1) + " ms"
234+
: replyTime.toFixed(1) + " s";
235235
}
236236

237237
// else: return the number itself (for sorting and searching)

0 commit comments

Comments
 (0)