Skip to content

Commit 174c44a

Browse files
authored
Merge pull request #44 from codeuniversity/clean-code-frontend
Refactor and clean frontend code
2 parents 013e8bf + 9047c13 commit 174c44a

33 files changed

+6757
-2294
lines changed

frontend/.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"semi": false
3+
}

frontend/eslint.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import globals from "globals"
2+
import pluginJs from "@eslint/js"
3+
import pluginVue from "eslint-plugin-vue"
4+
5+
/** @type {import('eslint').Linter.Config[]} */
6+
export default [
7+
{ files: ["**/*.{js,mjs,cjs,vue}"] },
8+
{ languageOptions: { globals: globals.browser } },
9+
pluginJs.configs.recommended,
10+
...pluginVue.configs["flat/essential"],
11+
]

frontend/index.html

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Climates of Tempelhofer Feld</title>
8+
</head>
39

4-
<head>
5-
<meta charset="UTF-8">
6-
<link rel="icon" href="/favicon.ico">
7-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8-
<title>Climates of Tempelhofer Feld</title>
9-
</head>
10-
11-
<body>
12-
<div id="app"></div>
13-
<script type="module" src="/src/main.js"></script>
14-
</body>
15-
16-
</html>
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.js"></script>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)