Skip to content

Commit dfc64ae

Browse files
committed
added typescript support
1 parent 9ebda1c commit dfc64ae

20 files changed

+4681
-172
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
quote_type = single
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules/
2+
build/
3+
dist/
4+
**/*.min.js
5+
**/*-min.js
6+
**/*.bundle.js

.eslintrc.cjs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
/* eslint-env node */
2-
require("@rushstack/eslint-patch/modern-module-resolution");
2+
require('@rushstack/eslint-patch/modern-module-resolution')
33

44
module.exports = {
5-
"root": true,
6-
"extends": [
7-
"plugin:vue/vue3-essential",
8-
"eslint:recommended",
9-
"@vue/eslint-config-prettier"
5+
root: true,
6+
extends: [
7+
// 'plugin:vue/vue3-essential',
8+
// 'eslint:recommended',
9+
// '@vue/eslint-config-prettier',
10+
'@antfu/eslint-config-vue',
1011
],
11-
"env": {
12-
"vue/setup-compiler-macros": true
13-
}
12+
env: {
13+
'vue/setup-compiler-macros': true,
14+
},
1415
}

.prettierignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
build
2+
dist
3+
coverage
4+
*.html
5+
pnpm-lock.yaml
6+
pnpm-workspace.yaml
7+
.editorconfig
8+
yarn.lock
9+
build.sh

.prettierrc

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

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
</head>
99
<body>
1010
<div id="app"></div>
11-
<script type="module" src="/src/main.js"></script>
11+
<script type="module" src="/src/main.ts"></script>
1212
</body>
1313
</html>

0 commit comments

Comments
 (0)