Skip to content

Commit fff8e2b

Browse files
authored
Merge pull request #1 from crunchloop/chore/add-eslint
chore: Add eslint
2 parents 609bc8a + acc342d commit fff8e2b

4 files changed

Lines changed: 1283 additions & 3432 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
- name: Set NodeJS
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '22.12.0'
21+
cache: 'npm'
22+
- run: npm ci
23+
- run: npm run build
24+
eslint:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v2
29+
- name: Set NodeJS
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: '22.12.0'
33+
cache: 'npm'
34+
- run: npm ci
35+
- name: Run ESLint
36+
run: npx eslint

eslint.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// @ts-check
2+
3+
import eslint from '@eslint/js';
4+
import tseslint from 'typescript-eslint';
5+
6+
export default tseslint.config(
7+
eslint.configs.recommended,
8+
tseslint.configs.strict,
9+
tseslint.configs.stylistic,
10+
);

0 commit comments

Comments
 (0)