Skip to content

Latest commit

 

History

History

web

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

app/web

Project setup

npm install

Compiles and hot-reloads for development

npm run start

Compiles and minifies for production

npm run build

Lint check (no fix)

npm run lint

Type check (no fix)

npm run build:check

Code formatting check (no fix)

npm run fmt:check

Format code (WILL FIX)

npm run fmt

Vue 3 + Typescript + Vite

This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

IDE Setup Instructions

VSCode (preferred)

  • Install Volar plugin and Typescript Volar plugin
    • and disable Vetur if installed
  • Enable TS "takeover mode" (see here)
    • run "Extensions: Show built-in extensions" from command pallete
    • search for "@builtin typescript" in extensions panel
    • find "Typescript + Javascript Language Features", click gear and "Disable (Workspace)"
  • Use workspace's typescript version
    • run "Volar: Select Typescript Version" from command pallete
    • select "Use workspace version"
  • Install ESLint plugin
    • NOTE - you don't need the prettier plugin, as it will be running via the eslint plugin
  • Enable format on save (recommended)
    • add "editor.formatOnSave": true to .vscode/settings.json file
    • add "[vue][typescript][javascript]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" } to .vscode/settings.json file
    • add "eslint.workingDirectories": [{"mode": "auto"}] to .vscode/settings.json file
    • add "vue.codeActions.enabled": false to .vscode/settings.json file

.vscode/settings.json

{
  "editor.formatOnSave": true,
  "[vue]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint"
  },
  "[typescript]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint"
  },
  "[javascript]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint"
  },
  // enable tailwind class autocomplete / tooling outside of just "class" in templates
  "tailwindCSS.experimental.classRegex": [
    [
        "tw`([^`]*)", // tw`...`
    ]
  ],
  "eslint.workingDirectories": [
    {
        "mode": "auto"
    }
  ],
  "vue.codeActions.enabled": false,
}