Skip to content

Commit 7d26526

Browse files
committed
Migrate to eslint 9
1 parent b8bc523 commit 7d26526

File tree

7 files changed

+422
-1722
lines changed

7 files changed

+422
-1722
lines changed

.eslintrc.js

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

eslint.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import eslint from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
4+
export default tseslint.config(
5+
eslint.configs.recommended,
6+
...tseslint.configs.recommendedTypeChecked,
7+
{
8+
languageOptions: {
9+
parserOptions: {
10+
projectService: true,
11+
project: './tsconfig.json',
12+
},
13+
},
14+
rules: {
15+
// validation function throw strings
16+
'@typescript-eslint/only-throw-error': 'off',
17+
// reject async function as part of logic
18+
'@typescript-eslint/prefer-promise-reject-errors': 'off',
19+
},
20+
},
21+
);

0 commit comments

Comments
 (0)