33 lines
594 B
JavaScript
33 lines
594 B
JavaScript
|
|
import antfu from '@antfu/eslint-config'
|
||
|
|
|
||
|
|
export default antfu(
|
||
|
|
{
|
||
|
|
unocss: true,
|
||
|
|
ignores: [
|
||
|
|
'public',
|
||
|
|
'dist*',
|
||
|
|
],
|
||
|
|
},
|
||
|
|
{
|
||
|
|
rules: {
|
||
|
|
'e18e/prefer-static-regex': 'off',
|
||
|
|
'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'],
|
||
|
|
}],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
)
|