Skip to content

Commit

Permalink
add vetur as a vscode recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
pettinarip committed Jun 21, 2021
1 parent 2ab152b commit 5b7f70a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
vue-app/.env
vue-app/gundata/
vetur.config.js
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"juanblanco.solidity",
"ms-vscode.vscode-typescript-tslint-plugin"
"ms-vscode.vscode-typescript-tslint-plugin",
"octref.vetur"
]
}
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,25 @@ yarn start:web
yarn lint
```

### Visual Studio Code
As a recommendation, use the [Vetur](https://vuejs.github.io/vetur/) extension.
It gives you some useful features for Vue like syntax highlights, autocomplete,
etc.

Create a `vetur.config.js` file at the project root with the following content:
```
/** @type {import('vls').VeturConfig} */
module.exports = {
settings: {
'vetur.useWorkspaceDependencies': true,
},
projects: [
{
root: './vue-app',
package: './package.json',
tsconfig: './tsconfig.json',
globalComponents: ['./src/components/**/*.vue'],
},
],
}
```

0 comments on commit 5b7f70a

Please sign in to comment.