mirror of
https://gitee.com/WeBank/fes.js.git
synced 2024-12-01 19:27:47 +08:00
37 lines
896 B
JavaScript
37 lines
896 B
JavaScript
// eslint.config.js
|
|
import antfu from '@antfu/eslint-config';
|
|
|
|
export default await antfu({
|
|
// TODO: 使用 ignore 代替 cli 命令中的配置
|
|
stylistic: {
|
|
indent: 4,
|
|
quotes: 'single',
|
|
semi: 'always',
|
|
},
|
|
typescript: true,
|
|
vue: true,
|
|
rules: {
|
|
'curly': ['error', 'multi-line'],
|
|
'vue/block-order': [
|
|
'error',
|
|
{
|
|
order: ['template', 'script', 'style'],
|
|
},
|
|
],
|
|
'style/member-delimiter-style': [
|
|
'error',
|
|
{
|
|
multiline: {
|
|
delimiter: 'semi',
|
|
requireLast: true,
|
|
},
|
|
singleline: {
|
|
delimiter: 'semi',
|
|
requireLast: false,
|
|
},
|
|
multilineDetection: 'brackets',
|
|
},
|
|
],
|
|
},
|
|
});
|