Skip to content

Commit 7421b61

Browse files
committed
Update ESLint for TypeScript
1 parent 6695d7a commit 7421b61

File tree

4 files changed

+486
-111
lines changed

4 files changed

+486
-111
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 15 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// @ts-check
2+
3+
import eslint from '@eslint/js';
4+
import { defineConfig } from 'eslint/config';
5+
import tseslint from 'typescript-eslint';
6+
7+
export default defineConfig([
8+
{
9+
files: ['src/**/*.{ts,tsx,js}'],
10+
languageOptions: {
11+
parserOptions: {
12+
projectService: true,
13+
},
14+
},
15+
extends: [
16+
eslint.configs.recommended,
17+
...tseslint.configs.recommendedTypeChecked,
18+
...tseslint.configs.stylisticTypeChecked,
19+
],
20+
rules: {
21+
'no-fallthrough': 'off',
22+
'@typescript-eslint/require-await': 'off',
23+
'@typescript-eslint/consistent-type-definitions': 'off',
24+
},
25+
},
26+
{
27+
ignores: [
28+
'ci/*',
29+
'dist/*',
30+
'documentation/*',
31+
'integration-tests/*',
32+
'runtime/*',
33+
'tests/*',
34+
'test-d/*',
35+
]
36+
},
37+
]);

0 commit comments

Comments
 (0)