Skip to content

Commit 3595e56

Browse files
committed
test
0 parents  commit 3595e56

18 files changed

+6669
-0
lines changed

.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# http://editorconfig.org
2+
3+
root = true # 根路径
4+
5+
# 对所有文件生效
6+
[*]
7+
charset = utf-8 # 文件编码
8+
indent_style = space # 缩进类型
9+
indent_size = 2 #缩进数量
10+
end_of_line = lf # 换行符格式
11+
insert_final_newline = true # 是否在文件最后插入空行
12+
trim_trailing_whitespace = true #是否删除行尾空格
13+
14+
# 对后缀名为 md 的文件生效
15+
[*.md]
16+
trim_trailing_whitespace = false

.eslintrc.js

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/*
2+
* @Descripttion:
3+
* @version:
4+
* @Author: wenlan
5+
* @Date: 2022-01-14 15:22:01
6+
* @LastEditors: wenlan
7+
* @LastEditTime: 2022-01-14 19:58:10
8+
*/
9+
module.exports = {
10+
parser: "vue-eslint-parser",
11+
parserOptions: {
12+
parser: "@typescript-eslint/parser",
13+
ecmaVersion: 2020,
14+
sourceType: "module",
15+
ecmaFeatures: {
16+
jsx: true
17+
}
18+
},
19+
extends: [
20+
"plugin:vue/vue3-recommended",
21+
"plugin:@typescript-eslint/recommended",
22+
"prettier/@typescript-eslint",
23+
"plugin:prettier/recommended"
24+
],
25+
rules: {
26+
"@typescript-eslint/ban-ts-ignore": "off",
27+
"@typescript-eslint/explicit-function-return-type": "off",
28+
"@typescript-eslint/no-explicit-any": "off",
29+
"@typescript-eslint/no-var-requires": "off",
30+
"@typescript-eslint/no-empty-function": "off",
31+
"vue/custom-event-name-casing": "off",
32+
"no-use-before-define": "off",
33+
// 'no-use-before-define': [
34+
// 'error',
35+
// {
36+
// functions: false,
37+
// classes: true,
38+
// },
39+
// ],
40+
"@typescript-eslint/no-use-before-define": "off",
41+
// '@typescript-eslint/no-use-before-define': [
42+
// 'error',
43+
// {
44+
// functions: false,
45+
// classes: true,
46+
// },
47+
// ],
48+
"@typescript-eslint/ban-ts-comment": "off",
49+
"@typescript-eslint/ban-types": "off",
50+
"@typescript-eslint/no-non-null-assertion": "off",
51+
"@typescript-eslint/explicit-module-boundary-types": "off",
52+
"@typescript-eslint/no-unused-vars": [
53+
"error",
54+
{
55+
argsIgnorePattern: "^h$",
56+
varsIgnorePattern: "^h$"
57+
}
58+
],
59+
"no-unused-vars": [
60+
"error",
61+
{
62+
argsIgnorePattern: "^h$",
63+
varsIgnorePattern: "^h$"
64+
}
65+
],
66+
"space-before-function-paren": "off",
67+
quotes: ["error", "single"],
68+
"comma-dangle": ["error", "never"]
69+
}
70+
}

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
.DS_Store
3+
dist
4+
dist-ssr
5+
*.local

.prettierignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/dist/*
2+
.local
3+
.output.js
4+
/node_modules/**
5+
6+
**/*.svg
7+
**/*.sh
8+
/public/*

.prettierrc

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

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["johnsoncodehk.volar"]
3+
}

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Vue 3 + Typescript + Vite
2+
3+
This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4+
5+
## Recommended IDE Setup
6+
7+
- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
8+
9+
## Type Support For `.vue` Imports in TS
10+
11+
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's `.vue` type support plugin by running `Volar: Switch TS Plugin on/off` from VSCode command palette.

index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<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>Vite App</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)