2025-04-06 14:01:05 +00:00
|
|
|
import { defineConfig } from 'eslint-define-config'
|
|
|
|
|
import antfu from '@antfu/eslint-config'
|
2025-04-01 18:39:18 +00:00
|
|
|
|
2025-04-06 14:01:05 +00:00
|
|
|
export default defineConfig({
|
|
|
|
|
...antfu,
|
|
|
|
|
languageOptions: {
|
|
|
|
|
globals: {
|
|
|
|
|
es2021: true, // ECMAScript 2021 features (including structuredClone)
|
|
|
|
|
node: true, // Node.js global variables
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
rules: {
|
|
|
|
|
...antfu.rules,
|
|
|
|
|
'accessor-pairs': 'off',
|
|
|
|
|
'no-dupe-args': 'error'
|
|
|
|
|
}
|
|
|
|
|
})
|