Skip to content

Commit fa10a31

Browse files
committedNov 26, 2021
Adjust toolchain
1 parent 9c220f6 commit fa10a31

9 files changed

+2363
-68
lines changed
 

‎.eslintrc

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"browser": true,
5+
"es2021": true,
6+
"node": true
7+
},
8+
"extends": [
9+
"@vue/prettier/@typescript-eslint",
10+
"plugin:vue/vue3-recommended",
11+
"@vue/typescript/recommended",
12+
"eslint:recommended",
13+
"@vue/prettier"
14+
],
15+
"parserOptions": {
16+
"ecmaVersion": 2021
17+
},
18+
"plugins": [],
19+
"rules": {}
20+
}

‎.prettierrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"vueIndentScriptAndStyle": true,
3+
"trailingComma": "es5",
4+
"singleQuote": true,
5+
"printWidth": 120,
6+
"tabWidth": 4,
7+
"semi": true
8+
}

‎README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Void web frontend
2+
3+
## Tech Stack
4+
5+
- [Vue](https://v3.vuejs.org/)
6+
- [Vite](https://vitejs.dev/)
7+
- [Windi CSS](https://windicss.org/)
8+
- [Pinia](https://pinia.esm.dev/)

‎index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta charset="UTF-8" />
66
<link rel="icon" href="/favicon.ico" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>Void</title>
8+
<title>Void - Void is a DNS level ad blocker written in Go</title>
99
</head>
1010

1111
<body>

‎package-lock.json

+2,304-65
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+9
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,16 @@
1212
"vue-router": "^4.0.12"
1313
},
1414
"devDependencies": {
15+
"@types/node": "^16.11.10",
16+
"@typescript-eslint/eslint-plugin": "^5.4.0",
17+
"@typescript-eslint/parser": "^5.4.0",
1518
"@vitejs/plugin-vue": "^1.9.3",
19+
"@vue/eslint-config-prettier": "^6.0.0",
20+
"@vue/eslint-config-typescript": "^9.1.0",
21+
"eslint": "^8.3.0",
22+
"eslint-plugin-prettier": "^3.4.1",
23+
"eslint-plugin-vue": "^8.1.1",
24+
"prettier": "^2.5.0",
1625
"typescript": "^4.4.3",
1726
"vite": "^2.6.4",
1827
"vite-plugin-windicss": "^1.4.12",
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts" setup></script>
22

33
<template>
4-
<div class=""></div>
4+
<div class="" />
55
</template>

‎tsconfig.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@
1212
"lib": [
1313
"esnext",
1414
"dom"
15-
]
15+
],
16+
"paths": {
17+
"@/*": [
18+
"./src/*"
19+
]
20+
}
1621
},
1722
"include": [
1823
"src/**/*.ts",

‎vite.config.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
import { defineConfig } from 'vite';
2+
import { resolve } from 'path';
23

34
import windi from 'vite-plugin-windicss';
45
import vue from '@vitejs/plugin-vue';
56

67
export default defineConfig({
78
plugins: [vue(), windi()],
9+
resolve: {
10+
alias: {
11+
'@': resolve(__dirname, './src'),
12+
},
13+
},
814
});

0 commit comments

Comments
 (0)
Please sign in to comment.