From 3713c4624ae0002f8f754e7b4e5d75f18c5880ca Mon Sep 17 00:00:00 2001 From: Pau Date: Sun, 6 Apr 2025 16:01:05 +0200 Subject: [PATCH] fixed compilation related linter problem --- eslint.config.mjs | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) 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