Run linter as part of Github action

This commit is contained in:
Erik Schilling
2020-12-16 22:24:52 +01:00
parent 5516757ebe
commit ac42a0c5e8
3 changed files with 3 additions and 2 deletions

View File

@@ -19,5 +19,6 @@ jobs:
- run: npm install - run: npm install
- run: npm run build --if-present - run: npm run build --if-present
- run: npm test - run: npm test
- run: npm run lint
env: env:
CI: true CI: true

View File

@@ -5,7 +5,7 @@
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"build": "vue-cli-service build", "build": "vue-cli-service build",
"lint": "vue-cli-service lint", "lint": "vue-cli-service lint --max-warnings 0 --ignore-pattern=\"src/shims-vue.d.ts\"",
"test": "jest" "test": "jest"
}, },
"jest": { "jest": {

View File

@@ -5,7 +5,7 @@ export interface SaveGame {
score: number score: number
} }
export function saveGame(saveGame: SaveGame) { export function saveGame(saveGame: SaveGame): void {
localStorage.setItem(saveGameKey, JSON.stringify(saveGame)); localStorage.setItem(saveGameKey, JSON.stringify(saveGame));
} }