29 lines
778 B
JavaScript
29 lines
778 B
JavaScript
// eslint.config.js
|
||
import antfu from '@antfu/eslint-config'
|
||
|
||
// https://github.com/antfu/eslint-config
|
||
export default antfu(
|
||
{
|
||
ignores: [
|
||
'doc/**/*.md', // 忽略文档目录下的Markdown文件
|
||
],
|
||
typescript: {
|
||
overrides: {
|
||
'perfectionist/sort-exports': 'off',
|
||
'perfectionist/sort-imports': 'off',
|
||
'ts/no-unused-expressions': ['error', { allowShortCircuit: true }],
|
||
},
|
||
},
|
||
vue: {
|
||
overrides: {
|
||
'vue/no-unused-refs': 'off', // 暂时关闭,等待vue-lint的分支合并
|
||
'vue/no-reserved-component-names': 'off',
|
||
'vue/component-definition-name-casing': 'off',
|
||
'vue/block-order': ['error', {
|
||
order: ['template', 'script', 'style'],
|
||
}],
|
||
},
|
||
},
|
||
},
|
||
)
|