Skip to content

Commit

Permalink
Add typescript-eslint and fix corresponding issues (WICG#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
apasel422 authored Jun 12, 2024
1 parent 1a98850 commit 0480842
Show file tree
Hide file tree
Showing 19 changed files with 1,341 additions and 47 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test-typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ jobs:
- run: npm ci
- run: npm run build --if-present
- run: npm test
- run: npm run lint:check
- run: npm run pretty:check
- run: npm run lint
11 changes: 11 additions & 0 deletions ts/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'

export default tseslint.config(...tseslint.configs.recommendedTypeChecked, {
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
},
},
})
Loading

0 comments on commit 0480842

Please sign in to comment.