Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 042a17e

Browse files
wip: starting ts conversion
1 parent edf7c06 commit 042a17e

25 files changed

+2537
-589
lines changed

‎.devcontainer/devcontainer.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
"customizations": {
1313
"vscode": {
1414
"extensions": [
15-
"ms-azuretools.vscode-docker",
1615
"eamodio.gitlens",
1716
"esbenp.prettier-vscode",
1817
"mikestead.dotenv",
1918
"streetsidesoftware.code-spell-checker",
2019
"hollowtree.vue-snippets",
2120
"Vue.volar",
21+
"dbaeumer.vscode-eslint",
22+
"EditorConfig.EditorConfig",
2223
"bradlc.vscode-tailwindcss",
2324
"shd101wyy.markdown-preview-enhanced",
2425
"formulahendry.auto-rename-tag",

‎.editorconfig‎

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

‎.env.example‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
VITE_PORT=5173
1+
VITE_APP_PORT=5173
22
VITE_BASE_PATH=/
33
VITE_API_BASE_URL=http://api.vue-spa.localhost

‎.gitattributes‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

‎.gitignore‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,25 @@ pnpm-debug.log*
88
lerna-debug.log*
99

1010
node_modules
11+
.DS_Store
1112
dist
1213
dist-ssr
14+
coverage
1315
*.local
14-
!Dockerfile.local
16+
.env
1517
components.d.ts
1618

19+
/cypress/videos/
20+
/cypress/screenshots/
21+
1722
# Editor directories and files
1823
.vscode/*
1924
!.vscode/extensions.json
2025
.idea
21-
.DS_Store
2226
*.suo
2327
*.ntvs*
2428
*.njsproj
2529
*.sln
2630
*.sw?
2731

28-
.env
29-
.env.local
30-
.env.production
32+
*.tsbuildinfo

‎.vscode/extensions.json‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"recommendations": ["Vue.volar"]
2+
"recommendations": [
3+
"Vue.volar",
4+
"dbaeumer.vscode-eslint",
5+
"EditorConfig.EditorConfig"
6+
]
37
}

‎env.d.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/// <reference types="vite/client" />
2+
declare module "envConfig";

‎eslint.config.js‎

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import vue from 'eslint-plugin-vue';
2-
import {
3-
defineConfigWithVueTs,
4-
vueTsConfigs,
5-
} from '@vue/eslint-config-typescript';
6-
import eslint from '@eslint/js';
7-
import globals from 'globals';
2+
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript';
83

94
export default [
105
// Global ignores
@@ -15,23 +10,6 @@ export default [
1510
'public',
1611
],
1712
},
18-
// JavaScript files
19-
{
20-
files: ['**/*.js'],
21-
...eslint.configs.recommended,
22-
languageOptions: {
23-
ecmaVersion: 'latest',
24-
sourceType: 'module',
25-
globals: {
26-
...globals.browser,
27-
...globals.node,
28-
process: 'readonly',
29-
module: 'readonly',
30-
require: 'readonly',
31-
window: 'readonly',
32-
},
33-
},
34-
},
3513
// Vue and TypeScript files
3614
...defineConfigWithVueTs(
3715
vue.configs['flat/recommended'],
@@ -42,14 +20,14 @@ export default [
4220
'vue/attribute-hyphenation': 'off',
4321
'vue/v-on-event-hyphenation': 'off',
4422
'vue/multi-word-component-names': 'off',
45-
'vue/block-lang': 'off',
23+
//'vue/block-lang': 'off',
4624
'vue/no-v-html': 'off',
4725
'vue/html-indent': ['error', 4],
4826
'@typescript-eslint/no-explicit-any': 'off',
4927
indent: ['error', 4],
5028
semi: ['error', 'always'],
5129
'linebreak-style': ['error', 'unix'],
5230
},
53-
}
31+
},
5432
),
55-
];
33+
];

‎index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<div id="app"></div>
3131
<script
3232
type="module"
33-
src="/src/app.js"
33+
src="/src/main.ts"
3434
></script>
3535
</body>
3636
</html>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /