fixed compilation related linter problem

This commit is contained in:
Pau 2025-04-06 16:01:05 +02:00
parent 9ab2f61b8c
commit 3713c4624a
1 changed files with 16 additions and 14 deletions

View File

@ -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
export default defineConfig({
...antfu,
languageOptions: {
globals: {
es2021: true, // ECMAScript 2021 features (including structuredClone)
node: true, // Node.js global variables
}
},
rules: {
'style/comma-dangle': ['error', 'never'], // Disallow trailing commas
'antfu/top-level-function': 'off' // Disallow top-level function declarations
...antfu.rules,
'accessor-pairs': 'off',
'no-dupe-args': 'error'
}
}
)
*/
})