feat(ci): Run eslint on ci
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6bc40ed080
commit
a89a520c6e
3 changed files with 17 additions and 14 deletions
|
@ -15,6 +15,10 @@ steps:
|
|||
image: node-pnpm:16-alpine
|
||||
commands:
|
||||
- pnpm format:check
|
||||
- name: Lint code
|
||||
image: node-pnpm:16-alpine
|
||||
commands:
|
||||
- pnpm lint
|
||||
- name: Build site
|
||||
image: node-pnpm:16-alpine
|
||||
commands:
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"preview": "vite preview",
|
||||
"format": "prettier --write .",
|
||||
"format:check": "prettier --check .",
|
||||
"lint": "eslint ."
|
||||
"lint": "eslint . --max-warnings 0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fontsource/noto-sans-symbols-2": "^4.5.9",
|
||||
|
|
|
@ -96,8 +96,7 @@ export const POSITION_5 =
|
|||
export const POSITION_6 =
|
||||
'r4rk1/1pp1qppp/p1np1n2/2b1p1B1/2B1P1b1/P1NP1N2/1PP1QPPP/R4RK1 w - - 0 10';
|
||||
|
||||
/* eslint @typescript-eslint/no-explicit-any: off */
|
||||
{
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
(window as any).START_FEN = START_FEN;
|
||||
(window as any).TEST_FEN = TEST_FEN;
|
||||
(window as any).PAWN_BUG_TEST_FEN = PAWN_BUG_TEST_FEN;
|
||||
|
@ -108,7 +107,7 @@ export const POSITION_6 =
|
|||
(window as any).POSITION_4 = POSITION_4;
|
||||
(window as any).POSITION_5 = POSITION_5;
|
||||
(window as any).POSITION_6 = POSITION_6;
|
||||
}
|
||||
/* eslint-enable @typescript-eslint/no-explicit-any */
|
||||
|
||||
export interface GameState {
|
||||
board: Board;
|
||||
|
|
Loading…
Reference in a new issue