Skip to content

Commit 03c137f

Browse files
committed
Set up CI for ESLint and Prettier
1 parent b2f60c0 commit 03c137f

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/workflows/eslint.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: ESLint
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
eslint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v5
10+
11+
- name: Install NPM dependencies
12+
run: |
13+
npm ci
14+
npm install -g typescript
15+
16+
- name: Run ESlint
17+
run: |
18+
cd rt
19+
npx eslint src

.github/workflows/prettier.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Prettier
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
eslint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v5
10+
11+
- name: Install NPM dependencies
12+
run: |
13+
npm ci
14+
npm install -g typescript
15+
16+
- name: Run Prettier
17+
run: |
18+
cd rt
19+
npx prettier --check src

0 commit comments

Comments
 (0)