Skip to content

Commit 0524e53

Browse files
committed
ci: add prettier
1 parent c2ee925 commit 0524e53

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

.eslintrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"rootDir": "./apps/librelingo-web/src"
66
}
77
},
8-
"ignorePatterns": ["playwright-report"],
8+
"ignorePatterns": ["playwright-report", "apps/librelingo-web/out"],
99
"rules": {
1010
"@next/next/no-html-link-for-pages": "off"
1111
}

.github/workflows/lint.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Lint (node)
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
jobs:
8+
test:
9+
timeout-minutes: 60
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 22
16+
- name: Install dependencies
17+
run: npm ci
18+
- name: Run lint checks
19+
run: npm run lint

.github/workflows/playwright.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Playwright Tests
22
on:
33
push:
4-
branches: [main, master]
4+
branches: [main]
55
pull_request:
6-
branches: [main, master]
6+
branches: [main]
77
jobs:
88
test:
99
timeout-minutes: 60

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
"e2e:test": "playwright test",
1515
"e2e:ui": "playwright test --ui",
1616
"e2e:report": "playwright show-report",
17-
"lint": "eslint .",
17+
"lint": "npm run lint:eslint && npm run lint:prettier",
18+
"lint:eslint": "eslint .",
19+
"lint:prettier": "npx prettier --check .",
1820
"format": "npx prettier . --write",
1921
"course:build": "./scripts/exportYamlCourse.sh"
2022
},

0 commit comments

Comments
 (0)