Skip to content

Commit 6903a96

Browse files
committed
ci: add TSSLint (#119)
1 parent 1e218a8 commit 6903a96

File tree

4 files changed

+683
-1204
lines changed

4 files changed

+683
-1204
lines changed

.github/workflows/auto-fix.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: auto-fix
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
8+
jobs:
9+
auto-fix:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: pnpm/action-setup@v2
15+
with:
16+
version: latest
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
cache: pnpm
22+
23+
- run: pnpm install
24+
25+
# lint
26+
- name: Auto-fix
27+
run: npm run lint:fix
28+
29+
# commit
30+
- name: Commit
31+
uses: EndBug/add-and-commit@v9
32+
with:
33+
message: "ci(lint): auto-fix"
34+
default_author: github_actions
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@
77
"prerelease": "npm run build && npm run test",
88
"release": "lerna publish --exact --force-publish --yes --sync-workspace-lock --no-push",
99
"release:next": "npm run release -- --dist-tag next",
10-
"test": "vitest run"
10+
"test": "vitest run",
11+
"lint": "tsslint --projects **/tsconfig.json",
12+
"lint:fix": "npm run lint -- --fix"
1113
},
1214
"devDependencies": {
1315
"@lerna-lite/cli": "latest",
1416
"@lerna-lite/publish": "latest",
17+
"@tsslint/cli": "latest",
18+
"@tsslint/config": "latest",
1519
"typescript": "latest",
1620
"vite": "latest",
1721
"vitest": "latest"

0 commit comments

Comments
 (0)