Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
"customizations": {
"vscode": {
"extensions": [
"ms-azuretools.vscode-docker",
"eamodio.gitlens",
"esbenp.prettier-vscode",
"mikestead.dotenv",
"streetsidesoftware.code-spell-checker",
"hollowtree.vue-snippets",
"Vue.volar",
"dbaeumer.vscode-eslint",
"EditorConfig.EditorConfig",
"bradlc.vscode-tailwindcss",
"shd101wyy.markdown-preview-enhanced",
"formulahendry.auto-rename-tag",
Expand Down
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,css,scss,sass,less,styl}]
charset = utf-8
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
max_line_length = 120
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VITE_PORT=5173
VITE_APP_PORT=5173
VITE_BASE_PATH=/
VITE_API_BASE_URL=http://api.vue-spa.localhost
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
12 changes: 7 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,25 @@ pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local
!Dockerfile.local
.env
components.d.ts

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

.env
.env.local
.env.production
*.tsbuildinfo
6 changes: 5 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"recommendations": ["Vue.volar"]
"recommendations": [
"Vue.volar",
"dbaeumer.vscode-eslint",
"EditorConfig.EditorConfig"
]
}
2 changes: 1 addition & 1 deletion docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
labels:
- "traefik.enable=true"
- "traefik.http.routers.vue-spa.rule=Host(`vue-spa.localhost`)"
- "traefik.http.services.vue-spa.loadbalancer.server.port=${VITE_PORT}"
- "traefik.http.services.vue-spa.loadbalancer.server.port=${VITE_APP_PORT}"
networks:
- proxy

Expand Down
2 changes: 2 additions & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// <reference types="vite/client" />
declare module "envConfig";
33 changes: 5 additions & 28 deletions eslint.config.js → eslint.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import vue from 'eslint-plugin-vue';
import {
defineConfigWithVueTs,
vueTsConfigs,
} from '@vue/eslint-config-typescript';
import eslint from '@eslint/js';
import globals from 'globals';
import vue from 'eslint-plugin-vue'
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'

export default [
// Global ignores
Expand All @@ -15,23 +10,6 @@ export default [
'public',
],
},
// JavaScript files
{
files: ['**/*.js'],
...eslint.configs.recommended,
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
...globals.browser,
...globals.node,
process: 'readonly',
module: 'readonly',
require: 'readonly',
window: 'readonly',
},
},
},
// Vue and TypeScript files
...defineConfigWithVueTs(
vue.configs['flat/recommended'],
Expand All @@ -42,14 +20,13 @@ export default [
'vue/attribute-hyphenation': 'off',
'vue/v-on-event-hyphenation': 'off',
'vue/multi-word-component-names': 'off',
'vue/block-lang': 'off',
'vue/no-v-html': 'off',
'vue/html-indent': ['error', 4],
'@typescript-eslint/no-explicit-any': 'off',
indent: ['error', 4],
semi: ['error', 'always'],
semi: ['error', 'never'],
'linebreak-style': ['error', 'unix'],
},
}
},
),
];
]
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<div id="app"></div>
<script
type="module"
src="/src/app.js"
src="/src/main.ts"
></script>
</body>
</html>
Loading