This project is based the starter template for Gridsome using Typescript. It uses eslint and typescript for static code analysis. In order to integrate these tools with Visual Studio Code, you'll need to install ESLint and Vetur extensions for the editor.
Before contributing a blog article, check the documentation
npm install --global @gridsome/cli
gridsome create gridsome-ts https://github.com/cleitonper/gridsome-starter-typescript.git
to install this typescript startercd gridsome-ts
to open foldergridsome develop
to start local dev server athttp://localhost:8080
- happy coding 🎉🙌
- edit the
.eslintrc.json
file and add your favorites rules fromeslint
,typescript
andvue
. - run
yarn lint:check
to see static analysis result - run
yarn lint:fix
to fix errors found byeslint
As mentioned before, in order to lint your Typescript code in *.vue
Single File Components with vscode you'll need to install ESLint
and Vetur
extensions for the editor.
Use the links above to install the extensions, or follow the steps below:
- Open your vscode, type
CTRL + SHIFT + X
- Search for ESLint
- Select and install the extension
- Do same thing for Vetur extension
- Repository Documentation
- Gridsome docs
- Typescript docs
- ESLint docs
- ESLint rules
- Typescript rules
- Vue rules
- ESLint extension for vscode
- Vetur extension for vscode
Build: docker build -t appventure-website-v4 .
Run: docker run -p 8080:80 appventure-website-v4