Skip to content

Commit 377b65c

Browse files
committed
run prettier on everything
1 parent f8be80d commit 377b65c

File tree

6 files changed

+22
-18
lines changed

6 files changed

+22
-18
lines changed

frontend/.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ require('@rushstack/eslint-patch/modern-module-resolution')
33

44
module.exports = {
55
root: true,
6-
'extends': [
6+
extends: [
77
'plugin:vue/vue3-essential',
88
'eslint:recommended',
99
'@vue/eslint-config-typescript',

frontend/.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/

frontend/.prettierrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
"singleQuote": true,
66
"printWidth": 100,
77
"trailingComma": "none"
8-
}
8+
}

frontend/index.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta charset="UTF-8">
5-
<link rel="icon" href="/favicon.ico">
6-
<link rel="icon" type="image/png" sizes="256x256" href="/favicon-256.png">
7-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8-
<meta name="description" content="Trainbot watches a piece of train track, detects trains, and stitches together images of them.">
4+
<meta charset="UTF-8" />
5+
<link rel="icon" href="/favicon.ico" />
6+
<link rel="icon" type="image/png" sizes="256x256" href="/favicon-256.png" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
<meta
9+
name="description"
10+
content="Trainbot watches a piece of train track, detects trains, and stitches together images of them."
11+
/>
912
<title>Onlytrains</title>
1013
</head>
1114
<body>

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"build-only": "vite build",
1010
"type-check": "vue-tsc --noEmit",
1111
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
12-
"format": "prettier --write src/"
12+
"format": "prettier --write ."
1313
},
1414
"dependencies": {
1515
"@mdi/font": "^7.2.96",

frontend/vite.config.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { fileURLToPath, URL } from 'node:url'
22

3-
import { defineConfig, loadEnv } from 'vite';
3+
import { defineConfig, loadEnv } from 'vite'
44
import vue from '@vitejs/plugin-vue'
55
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
66

77
export default ({ mode }) => {
8-
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) };
8+
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) }
99

1010
// https://vitejs.dev/config/
1111
return defineConfig({
@@ -16,9 +16,9 @@ export default ({ mode }) => {
1616
vuetify({
1717
autoImport: true,
1818
styles: {
19-
configFile: 'src/styles/settings.scss',
20-
},
21-
}),
19+
configFile: 'src/styles/settings.scss'
20+
}
21+
})
2222
],
2323
resolve: {
2424
alias: {
@@ -27,12 +27,12 @@ export default ({ mode }) => {
2727
},
2828
server: {
2929
proxy: {
30-
"/data": {
30+
'/data': {
3131
target: process.env.VITE_FRONTEND_BASE_URL,
3232
changeOrigin: true,
33-
secure: false,
34-
},
35-
},
36-
},
33+
secure: false
34+
}
35+
}
36+
}
3737
})
3838
}

0 commit comments

Comments
 (0)