mirror of
https://gitee.com/fantastic-admin/basic.git
synced 2024-11-29 18:48:31 +08:00
32 lines
553 B
JavaScript
32 lines
553 B
JavaScript
import antfu from '@antfu/eslint-config'
|
|
|
|
export default antfu(
|
|
{
|
|
unocss: true,
|
|
ignores: [
|
|
'public',
|
|
'dist*',
|
|
],
|
|
},
|
|
{
|
|
rules: {
|
|
'eslint-comments/no-unlimited-disable': 'off',
|
|
'curly': ['error', 'all'],
|
|
'ts/no-unused-expressions': ['error', {
|
|
allowShortCircuit: true,
|
|
allowTernary: true,
|
|
}],
|
|
},
|
|
},
|
|
{
|
|
files: [
|
|
'src/**/*.vue',
|
|
],
|
|
rules: {
|
|
'vue/block-order': ['error', {
|
|
order: ['route', 'script', 'template', 'style'],
|
|
}],
|
|
},
|
|
},
|
|
)
|