diff --git a/eslint.config.mjs b/eslint.config.mjs index 29301bc..3c193c2 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,15 +1,17 @@ -/*import antfu from '@antfu/eslint-config' +import { defineConfig } from 'eslint-define-config' +import antfu from '@antfu/eslint-config' -export default antfu( - { - stylistic: { - indent: 'tab', // Use tabs for indentation - quotes: 'single' // Use single quotes - }, - rules: { - 'style/comma-dangle': ['error', 'never'], // Disallow trailing commas - 'antfu/top-level-function': 'off' // Disallow top-level function declarations - } - } -) -*/ \ No newline at end of file +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' + } +}) \ No newline at end of file