feat(ci): Run eslint on ci
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Ashhhleyyy 2022-07-07 10:19:48 +01:00
parent 6bc40ed080
commit a89a520c6e
Signed by: ash
GPG key ID: 83B789081A0878FB
3 changed files with 17 additions and 14 deletions

View file

@ -15,6 +15,10 @@ steps:
image: node-pnpm:16-alpine image: node-pnpm:16-alpine
commands: commands:
- pnpm format:check - pnpm format:check
- name: Lint code
image: node-pnpm:16-alpine
commands:
- pnpm lint
- name: Build site - name: Build site
image: node-pnpm:16-alpine image: node-pnpm:16-alpine
commands: commands:

View file

@ -8,7 +8,7 @@
"preview": "vite preview", "preview": "vite preview",
"format": "prettier --write .", "format": "prettier --write .",
"format:check": "prettier --check .", "format:check": "prettier --check .",
"lint": "eslint ." "lint": "eslint . --max-warnings 0"
}, },
"dependencies": { "dependencies": {
"@fontsource/noto-sans-symbols-2": "^4.5.9", "@fontsource/noto-sans-symbols-2": "^4.5.9",

View file

@ -96,8 +96,7 @@ export const POSITION_5 =
export const POSITION_6 = export const POSITION_6 =
'r4rk1/1pp1qppp/p1np1n2/2b1p1B1/2B1P1b1/P1NP1N2/1PP1QPPP/R4RK1 w - - 0 10'; '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).START_FEN = START_FEN;
(window as any).TEST_FEN = TEST_FEN; (window as any).TEST_FEN = TEST_FEN;
(window as any).PAWN_BUG_TEST_FEN = PAWN_BUG_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_4 = POSITION_4;
(window as any).POSITION_5 = POSITION_5; (window as any).POSITION_5 = POSITION_5;
(window as any).POSITION_6 = POSITION_6; (window as any).POSITION_6 = POSITION_6;
} /* eslint-enable @typescript-eslint/no-explicit-any */
export interface GameState { export interface GameState {
board: Board; board: Board;