Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@ jobs:
- name: Run lint
run: npm run lint

- name: Check server types
run: npm run typecheck:server

- name: Run tests
run: npm test
20 changes: 20 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import tsParser from '@typescript-eslint/parser'
import tsPlugin from '@typescript-eslint/eslint-plugin'

const nodeGlobals = {
AbortController: 'readonly',
Buffer: 'readonly',
Expand Down Expand Up @@ -32,6 +35,23 @@ const rules = {
}

export default [
{
files: ['server/**/*.ts', 'test/**/*.ts'],
languageOptions: {
parser: tsParser,
sourceType: 'module',
parserOptions: {
project: './tsconfig.server.json',
tsconfigRootDir: import.meta.dirname
}
},
plugins: { '@typescript-eslint': tsPlugin },
rules: {
...tsPlugin.configs.recommended.rules,
...tsPlugin.configs['recommended-type-checked'].rules,
'@typescript-eslint/no-explicit-any': 'error'
}
},
{
ignores: ['**/node_modules/**', 'client/**', 'dist/**', 'dist-server/**', 'coverage/**', 'server/libs/**']
},
Expand Down
Loading