Skip to content

Commit 8292797

Browse files
authored
chore: replace deprecated config
1 parent 2c4e13c commit 8292797

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eslint.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import eslint from '@eslint/js';
22
import tseslint from 'typescript-eslint';
3+
import { defineConfig } from 'eslint/config';
34
import stylistic from '@stylistic/eslint-plugin';
45

5-
export default tseslint.config({
6+
export default defineConfig({
67
extends: [
78
eslint.configs.recommended,
89
...tseslint.configs.strictTypeChecked,
@@ -51,6 +52,7 @@ export default tseslint.config({
5152
}],
5253
'@typescript-eslint/no-misused-promises': ['error', { checksVoidReturn: false }],
5354
'@typescript-eslint/no-unnecessary-type-parameters': 'off',
55+
'@typescript-eslint/no-floating-promises': 'error',
5456

5557
'@stylistic/arrow-parens': ['warn', 'as-needed'],
5658
'@stylistic/quote-props': ['warn', 'as-needed'],

0 commit comments

Comments
 (0)