mirror of
https://github.com/Kugelschieber/breach.git
synced 2026-01-18 03:50:24 +00:00
Run linter as part of Github action
This commit is contained in:
1
.github/workflows/npm-test.yml
vendored
1
.github/workflows/npm-test.yml
vendored
@@ -19,5 +19,6 @@ jobs:
|
||||
- run: npm install
|
||||
- run: npm run build --if-present
|
||||
- run: npm test
|
||||
- run: npm run lint
|
||||
env:
|
||||
CI: true
|
||||
@@ -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": {
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user