Skip to content

Commit 95c9300

Browse files
committed
node 16.10+ / es2022
1 parent 2139996 commit 95c9300

7 files changed

Lines changed: 149 additions & 216 deletions

eslint.config.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import eslint from '@eslint/js'
22
import tseslint from 'typescript-eslint'
33
import globals from 'globals'
4+
import { defineConfig } from 'eslint/config'
45
import eslintConfigPrettier from 'eslint-config-prettier/flat'
56

6-
export default tseslint.config([
7+
export default defineConfig([
78
{
89
files: ['**/*.ts'],
910
extends: [
@@ -12,6 +13,9 @@ export default tseslint.config([
1213
tseslint.configs.stylisticTypeChecked,
1314
eslintConfigPrettier,
1415
],
16+
linterOptions: {
17+
reportUnusedDisableDirectives: 'error',
18+
},
1519
languageOptions: {
1620
ecmaVersion: 2020,
1721
globals: globals.node,
@@ -42,4 +46,10 @@ export default tseslint.config([
4246
],
4347
},
4448
},
49+
{
50+
files: ['test/**/*.ts'],
51+
rules: {
52+
'@typescript-eslint/no-unsafe-return': 'off',
53+
},
54+
},
4555
])

0 commit comments

Comments
 (0)