Add ESLint (#941)

* Add eslint, switch to lint-staged for precommit

* Fix all ESLint errors

* Update GH workflow to check prettier and eslint
This commit is contained in:
Madeline
2023-01-20 18:10:47 +11:00
committed by GitHub
parent 071cf6c5f2
commit 71082eb918
158 changed files with 738 additions and 667 deletions

View File

@@ -24,5 +24,7 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npx eslint .
- run: npx prettier --check .
- run: npm run build --if-present
- run: npm run test --if-present