fixed compilation related linter problem
This commit is contained in:
parent
9ab2f61b8c
commit
3713c4624a
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
)
|
||||
*/
|
||||
})
|
||||
Loading…
Reference in New Issue