A Vue scaffold plugin based on prettier specification
- √ Vue 2.x + Typescript
- √ Vue 2.x + Javascript
- √ Vue 3.x + Typescript
- √ Vue 3.x + Javascript
Search and install the following 2 plugins in your VScode plugin store
- ESLint: Check for errors in code writing
- Prettier: Unified formatting code style
In "file = > Preferences = > Settings = > Open settings (JSON)", add the following configuration:
{
"eslint.validate": [
"vue",
"javascript",
"typescript",
"javascriptreact",
"typescriptreact"
],
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
vue add @vbs/eslint
- 🚩 Choose a version of Vue.js
- 🚩 Choose your project language
- 🚩 Choose install style property declarations and groups related properties
- 🚩 Choose install git submit verification
Q: Why does the editor not prompt the code to report an error after I install it?
A: After attempting to install, restart the vscode editor