mirror of
https://github.com/Kugelschieber/breach.git
synced 2026-01-18 12:00:25 +00:00
Merge pull request #20 from Ablu/linter
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 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
|
||||||
@@ -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": {
|
||||||
|
|||||||
@@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user