Merge pull request #20 from Ablu/linter

Run linter as part of Github action
This commit is contained in:
Marvin Blum
2020-12-17 12:58:42 +01:00
committed by GitHub
3 changed files with 3 additions and 2 deletions

View File

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

View File

@@ -5,7 +5,7 @@
"scripts": {
"serve": "vue-cli-service serve",
"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"
},
"jest": {

View File

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