Skip to content

Commit 064e39f

Browse files
doc:更新到最新
1 parent da9b227 commit 064e39f

33 files changed

+3757
-3186
lines changed

.editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,css,scss,sass,less,styl}]
2+
charset = utf-8
3+
indent_size = 2
4+
indent_style = space
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
8+
end_of_line = lf
9+
max_line_length = 100

.eslintrc.cjs

-15
This file was deleted.

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ coverage
1616

1717
/cypress/videos/
1818
/cypress/screenshots/
19+
package-lock.json
1920

2021
# Editor directories and files
2122
.vscode/*
@@ -26,3 +27,5 @@ coverage
2627
*.njsproj
2728
*.sln
2829
*.sw?
30+
31+
*.tsbuildinfo

.prettierrc.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
{}
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"semi": false,
4+
"singleQuote": true,
5+
"printWidth": 100
6+
}

.vscode/extensions.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"Vue.volar",
4+
"dbaeumer.vscode-eslint",
5+
"EditorConfig.EditorConfig",
6+
"esbenp.prettier-vscode"
7+
]
8+
}

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# vite-demo
1+
# vue3-todo-list
22

33
This template should help get you started developing with Vue 3 in Vite.
44

55
## Recommended IDE Setup
66

7-
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
7+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
88

99
## Customize configuration
1010

11-
See [Vite Configuration Reference](https://vitejs.dev/config/).
11+
See [Vite Configuration Reference](https://vite.dev/config/).
1212

1313
## Project Setup
1414

eslint.config.js

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import js from '@eslint/js'
2+
import pluginVue from 'eslint-plugin-vue'
3+
import globals from 'globals'
4+
import oxlint from 'eslint-plugin-oxlint'
5+
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
6+
7+
export default [
8+
{
9+
name: 'app/files-to-lint',
10+
files: ['**/*.{js,mjs,jsx,vue}'],
11+
},
12+
13+
{
14+
name: 'app/files-to-ignore',
15+
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
16+
},
17+
18+
{
19+
languageOptions: {
20+
globals: {
21+
...globals.browser,
22+
},
23+
},
24+
},
25+
26+
js.configs.recommended,
27+
...pluginVue.configs['flat/essential'],
28+
...oxlint.configs['flat/recommended'],
29+
skipFormatting,
30+
]

index.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="">
33
<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-Vue3-Todo</title>
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>
88
</head>
99
<body>
1010
<div id="app"></div>

jsconfig.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"paths": {
4+
"@/*": ["./src/*"]
5+
}
6+
},
7+
"exclude": ["node_modules", "dist"]
8+
}

0 commit comments

Comments
 (0)