mirror of
https://gitee.com/WeBank/fes.js.git
synced 2024-11-29 18:28:09 +08:00
74fa0ba122
* feat: 升级 eslint 配置及版本 * feat(plugin-layout): 支持配置 403、404 的 navigation * docs: 补充文档
38 lines
955 B
JavaScript
38 lines
955 B
JavaScript
// eslint.config.js
|
|
import antfu from '@antfu/eslint-config';
|
|
|
|
export default await antfu({
|
|
files: ['**/*.js', '**/*.jsx', '**/*.vue', '**/*.ts'],
|
|
// 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',
|
|
},
|
|
],
|
|
},
|
|
});
|