Skip to content
This repository was archived by the owner on Sep 28, 2024. It is now read-only.

Commit e0a9c12

Browse files
committed
Refactoring for Vue 3 and TypeScript 🎉
1 parent 26c989d commit e0a9c12

30 files changed

+37162
-10285
lines changed

.browserslistrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not dead

.editorconfig

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
# EditorConfig is awesome: https://EditorConfig.org
2-
3-
# top-most EditorConfig file
1+
# editorconfig.org
42
root = true
53

6-
# Unix-style newlines with a newline ending every file
74
[*]
5+
indent_style = space
6+
indent_size = 2
87
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
910
insert_final_newline = true
10-
trim_trailing_whitespace=true
11-
indent_style=space
12-
indent_size=2
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.eslintrc.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true,
5+
},
6+
extends: [
7+
'plugin:vue/vue3-essential',
8+
'eslint:recommended',
9+
'@vue/typescript/recommended',
10+
'@vue/prettier',
11+
'@vue/prettier/@typescript-eslint',
12+
],
13+
parserOptions: {
14+
ecmaVersion: 2020,
15+
},
16+
rules: {
17+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
18+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
19+
},
20+
}

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
.DS_Store
22
node_modules
33

4-
# env files
5-
.env
4+
# local env files
5+
.env.local
6+
.env.*.local
67

78
# Log files
89
npm-debug.log*

.prettierignore

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
1-
# Dist
2-
dist/
3-
4-
# node modules
1+
.DS_Store
52
node_modules
6-
package.json
7-
package-lock.json
3+
/dist
84

9-
# MacOS desktop services store
10-
.DS_Store
5+
# local env files
6+
.env.local
7+
.env.*.local
118

129
# Log files
13-
*.log
14-
15-
# Map files
16-
*.map
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
pnpm-debug.log*
1714

18-
# Editors
15+
# Editor directories and files
16+
.idea
1917
.vscode
20-
21-
# VuePress temp directory
22-
.temp
23-
24-
# Source Control
25-
.github
26-
27-
# Secure
28-
.env
18+
*.suo
19+
*.ntvs*
20+
*.njsproj
21+
*.sln
22+
*.sw?

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
"tabWidth": 2,
1313
"trailingComma": "all",
1414
"useTabs": false,
15-
"vueIndentScriptAndStyle": true
15+
"vueIndentScriptAndStyle": false
1616
}

0 commit comments

Comments
 (0)