Skip to content

Commit de05948

Browse files
committed
add lint
1 parent 8628f54 commit de05948

File tree

7 files changed

+2382
-101
lines changed

7 files changed

+2382
-101
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: ci
2+
on: [push, pull_request]
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- uses: actions/setup-node@v5
10+
with:
11+
node-version: latest
12+
- run: make deps
13+
- run: make lint

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ node_modules: package-lock.json
88
.PHONY: deps
99
deps: node_modules
1010

11+
.PHONY: lint
12+
lint: node_modules
13+
npx eslint --color .
14+
npx tsc
15+
16+
.PHONY: lint-fix
17+
lint-fix: node_modules
18+
npx eslint --color . --fix
19+
npx tsc
20+
21+
.PHONY: test
22+
test: node_modules
23+
@exit 0
24+
1125
.PHONY: build
1226
build: node_modules $(DIST_FILES)
1327

eslint.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import silverwind from "eslint-config-silverwind";
2+
import {defineConfig} from "eslint/config";
3+
4+
export default defineConfig(...silverwind);

0 commit comments

Comments
 (0)