Skip to content

Commit a4a8d3f

Browse files
added linting and fixed errors
1 parent bbbd218 commit a4a8d3f

8 files changed

Lines changed: 362 additions & 219 deletions

File tree

.github/workflows/lint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Lint
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- dev
9+
10+
jobs:
11+
eslint:
12+
name: ESLint
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repo
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Node
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
cache: npm
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
28+
- name: Run ESLint
29+
run: npm run lint

eslint.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import tseslint from "typescript-eslint";
2+
3+
export default [
4+
{
5+
ignores: ["dist/**", "node_modules/**", "src/__tests__"],
6+
},
7+
8+
...tseslint.configs.recommended,
9+
];

0 commit comments

Comments
 (0)