basic2/eslint.config.js

29 lines
482 B
JavaScript
Raw Normal View History

2023-10-29 23:17:31 +08:00
import antfu from '@antfu/eslint-config'
export default antfu(
{
unocss: true,
2023-10-29 23:17:31 +08:00
ignores: [
'public',
'dist*',
],
},
{
rules: {
'eslint-comments/no-unlimited-disable': 'off',
'curly': ['error', 'all'],
'antfu/consistent-list-newline': 'off',
},
},
{
files: [
'src/**/*.vue',
],
rules: {
2023-11-21 17:06:26 +08:00
'vue/block-order': ['error', {
2023-10-29 23:17:31 +08:00
order: ['route', 'script', 'template', 'style'],
}],
},
},
)