Skip to content

Commit d1032b8

Browse files
committed
chore: enhance CI/CD workflow with TypeScript typecheck and ESLint linting steps
1 parent 8f4c3f7 commit d1032b8

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.github/workflows/ci-cd.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ jobs:
3030
- name: Install dependencies
3131
run: npm install
3232

33+
- name: Typecheck
34+
run: npm run typecheck
35+
36+
- name: Lint
37+
run: npm run lint -- --max-warnings=0
38+
3339
- name: Build the extension
3440
run: npm run compile
3541

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ All notable changes to the "promptitude" extension will be documented in this fi
1010

1111
- Dev tooling: Bumped TypeScript to 5.9.3 and @types/node to 20.19.23.
1212
- Pinned @types/vscode to ~1.70.0 to align with `engines.vscode: ^1.70.0` and avoid compiling against newer VS Code API types than we officially support.
13-
- Dev tooling: Upgraded ESLint to 9.x and @typescript-eslint (parser/plugin) to 8.x.
14-
- Migrated from legacy .eslintrc to ESLint v9 flat config (`eslint.config.cjs`).
15-
- Removed deprecated rule `@typescript-eslint/semi` and switched to core `semi`.
16-
- Removed legacy `.eslintrc.js` file to avoid confusion post-migration.
13+
- Dev tooling: Upgraded ESLint to 9.x and @typescript-eslint (parser/plugin) to 8.x.
14+
- Migrated from legacy .eslintrc to ESLint v9 flat config (`eslint.config.cjs`).
15+
- CI: Added ESLint lint step to CI/CD workflow to enforce lint on PRs/builds.
16+
- CI: Added a TypeScript typecheck step (tsc --noEmit) and made ESLint fail on warnings (--max-warnings=0).
1717

1818
### Security
1919

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@
128128
"compile": "tsc -p ./",
129129
"watch": "tsc -watch -p ./",
130130
"pretest": "npm run compile && npm run lint",
131-
"lint": "eslint src --ext ts",
131+
"lint": "eslint src",
132+
"typecheck": "tsc -p ./ --noEmit",
132133
"test": "node ./out/test/runTest.js",
133134
"package": "vsce package"
134135
},

0 commit comments

Comments
 (0)