Skip to content

Commit 2a50f60

Browse files
committed
Update ESLint configuration to use defineConfig
- Import and use defineConfig from eslint/config for better type safety - Simplify tseslint.configs spreading syntax - Maintains all existing linting rules and configurations
1 parent 366ae29 commit 2a50f60

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

eslint.config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
import { defineConfig } from 'eslint/config';
12
import tseslint from 'typescript-eslint';
23

3-
export default tseslint.config(
4+
export default defineConfig(
45
{
56
ignores: ['dist']
67
},
7-
...tseslint.configs.strict,
8-
...tseslint.configs.stylistic,
8+
tseslint.configs.strict,
9+
tseslint.configs.stylistic,
910
{
1011
files: ['src/**/*.ts'],
1112
languageOptions: {

0 commit comments

Comments
 (0)