Skip to content

Commit 0a8386b

Browse files
committed
Upgrade ESLint
1 parent 917a1af commit 0a8386b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

eslint.config.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import markdown from '@eslint/markdown'
77
import stylisticJs from '@stylistic/eslint-plugin-js'
88
import stylisticPlus from '@stylistic/eslint-plugin-plus'
99
import stylisticTs from '@stylistic/eslint-plugin-ts'
10+
import { defineConfig } from 'eslint/config'
1011
import ava from 'eslint-plugin-ava'
1112
import eslintComments from 'eslint-plugin-eslint-comments'
1213
import filenames from 'eslint-plugin-filenames'
@@ -246,7 +247,7 @@ const fixupOldPluginRule = (rule) => ({
246247
},
247248
})
248249

249-
export default [
250+
export default defineConfig([
250251
importPlugin.flatConfigs.errors,
251252
{
252253
// The rules added by eslint-config-prettier are inlined explicitly instead
@@ -1741,6 +1742,6 @@ export default [
17411742
'max-lines': 0,
17421743
},
17431744
},
1744-
]
1745+
])
17451746
/* eslint-enable id-length, max-lines, no-magic-numbers,
17461747
import/max-dependencies */

0 commit comments

Comments
 (0)