Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update typescript config for ci
Browse files Browse the repository at this point in the history
junjie-w committed Nov 17, 2024
1 parent 53aece6 commit 35a1bc0
Showing 3 changed files with 21 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json',
project: [
'./tsconfig.json',
'./tsconfig.test.json'
],
tsconfigRootDir: __dirname
},
env: {
node: true,
3 changes: 3 additions & 0 deletions .github/workflows/quality-checks.yml
Original file line number Diff line number Diff line change
@@ -26,6 +26,9 @@ jobs:

- name: Security audit
run: npm audit

- name: Build TypeScript
run: npm run build

- name: Run linting
run: npm run lint
12 changes: 12 additions & 0 deletions tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"types": ["jest", "node"]
},
"include": [
"src/tests/**/*.ts"
],
"exclude": [
"node_modules"
]
}

0 comments on commit 35a1bc0

Please sign in to comment.