Skip to content

Commit 67cb6f4

Browse files
committed
feat: initialize rule generation tool
1 parent b9e755b commit 67cb6f4

File tree

7 files changed

+1346
-0
lines changed

7 files changed

+1346
-0
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,21 @@ jobs:
8989
- uses: crate-ci/typos@85f62a8a84f939ae994ab3763f01a0296d61a7ee # v1.36.2
9090
with:
9191
files: .
92+
93+
typecheck-rulegen:
94+
name: TypeScript Type Check (rulegen)
95+
runs-on: ubuntu-latest
96+
steps:
97+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
98+
with:
99+
persist-credentials: false
100+
101+
- uses: oxc-project/setup-node@fdbf0dfd334c4e6d56ceeb77d91c76339c2a0885 # v1.0.4
102+
103+
- name: Install dependencies
104+
run: pnpm install --frozen-lockfile
105+
working-directory: tasks/rulegen
106+
107+
- name: Run TypeScript type check
108+
run: pnpm run typecheck
109+
working-directory: tasks/rulegen

justfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ pull:
4646
pushd typescript-go && git reset --hard origin/main
4747
git pull
4848
just init
49+
50+
new-rule name:
51+
cd tasks/rulegen && pnpm run rulegen {{name}} && cd ../..

tasks/rulegen/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

tasks/rulegen/package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "@tsgolint/rulegen",
3+
"version": "1.0.0",
4+
"private": true,
5+
"type": "module",
6+
"scripts": {
7+
"rulegen": "node --import @oxc-node/core/register src/index.ts",
8+
"typecheck": "tsc"
9+
},
10+
"devDependencies": {
11+
"@oxc-node/core": "^0.0.32",
12+
"@types/node": "^24.5.2",
13+
"oxc-parser": "^0.89.0",
14+
"typescript": "^5.9.2"
15+
}
16+
}

0 commit comments

Comments
 (0)