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.gitto install this typescript startercd gridsome-tsto open foldergridsome developto start local dev server athttp://localhost:8080- happy coding 🎉🙌
- edit the
.eslintrc.jsonfile and add your favorites rules fromeslint,typescriptandvue. - run
yarn lint:checkto see static analysis result - run
yarn lint:fixto 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