24 lines
528 B
JavaScript
24 lines
528 B
JavaScript
// eslint.config.js
|
|
import antfu from '@antfu/eslint-config'
|
|
|
|
export default antfu({
|
|
// Or customize the stylistic rules
|
|
stylistic: {
|
|
indent: 2, // 4, or 'tab'
|
|
quotes: 'single', // or 'double'
|
|
},
|
|
|
|
// TypeScript and Vue are autodetected, you can also explicitly enable them:
|
|
typescript: true,
|
|
vue: true,
|
|
|
|
// Disable jsonc and yaml support
|
|
jsonc: false,
|
|
yaml: false,
|
|
|
|
// `.eslintignore` is no longer supported in Flat config, use `ignores` instead
|
|
ignores: [
|
|
'**/fixtures',
|
|
// ...globs
|
|
]
|
|
}) |