Skip to content

Commit ee9f8fc

Browse files
authored
build(eslint): update eslint.config.mjs (#1145)
1 parent bdc8d3b commit ee9f8fc

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

eslint.config.mjs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
// @ts-check
22
import eslint from '@eslint/js';
3+
import { defineConfig, globalIgnores } from 'eslint/config';
34
import globals from 'globals';
45
import tseslint from 'typescript-eslint';
56

6-
export default tseslint.config(
7-
// replacement of legacy `.eslintignore`
8-
{
9-
ignores: ['dist'],
10-
},
11-
// extends...
7+
export default defineConfig(
128
eslint.configs.recommended,
13-
...tseslint.configs.recommended,
14-
// base config
9+
tseslint.configs.recommended,
10+
globalIgnores(['dist']),
1511
{
1612
languageOptions: {
1713
globals: {

0 commit comments

Comments
 (0)