Add lint to workflow (#88)

* Add lint in workflow

This will check for code formatting, as well as for any ES lint issues.

* Format code

run `npm run check:write`

* Run lint and fix errors

Run `npm run lint` and then fix the errors shown.
This commit is contained in:
Eduard Filip
2024-12-17 11:05:12 +01:00
committed by GitHub
parent 734cd437f8
commit 3e2909a6b2
4 changed files with 2385 additions and 1504 deletions

View File

@@ -14,3 +14,16 @@ jobs:
with:
ignore_paths: >-
.husky
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install Dependencies
id: install
run: npm ci
- name: Check formatting
run: npm run format:check
- name: Check lint
run: npm run lint