Skip to content

Commit 3e96765

Browse files
committed
style(eslint): run
1 parent 13979db commit 3e96765

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ Mafl is an intuitive service for organizing your homepage. Customize Mafl to you
3030
This Docker image is published to both Docker Hub and the GitHub container registry. Depending on your preferences and needs, you can reference both `hywax/mafl` as well as `ghcr.io/hywax/mafl`.
3131

3232
```yaml
33-
version: "3.8"
33+
version: '3.8'
3434

3535
services:
3636
mafl:
3737
image: hywax/mafl
3838
restart: unless-stopped
3939
ports:
40-
- "3000:3000"
40+
- '3000:3000'
4141
volumes:
4242
- ./config.yml:/app/data/config.yml
4343
- ./icons:/app/public/icons

Diff for: nuxt.config.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ export default defineNuxtConfig({
4343
storage: {
4444
data: {
4545
driver: 'fs',
46-
base: './data'
47-
}
48-
}
49-
}
46+
base: './data',
47+
},
48+
},
49+
},
5050
})

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@
4242
"lint-staged": {
4343
"*.ts": "yarn run lint"
4444
}
45-
}
45+
}

Diff for: server/plugins/0.update-checker.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'node:process'
12
import currentPackage from '~/package.json'
23

34
export default defineNitroPlugin(async () => {
@@ -7,10 +8,10 @@ export default defineNitroPlugin(async () => {
78

89
try {
910
const latestPackage = await $fetch<typeof currentPackage>('https://raw.githubusercontent.com/hywax/mafl/main/package.json', {
10-
parseResponse: (json) => JSON.parse(json)
11+
parseResponse: (json) => JSON.parse(json),
1112
})
1213

13-
const parseVersion = (version: string): number => parseInt(version.replace(/\./g, ''), 10);
14+
const parseVersion = (version: string): number => Number.parseInt(version.replace(/\./g, ''), 10)
1415
const difference = parseVersion(latestPackage.version) - parseVersion(currentPackage.version)
1516

1617
if (difference > 0) {

0 commit comments

Comments
 (0)