1
0
mirror of https://github.com/robonen/lorem-blog.git synced 2026-03-20 02:44:39 +00:00

chore(lint): disable import/first rule for vue sfc

This commit is contained in:
2025-07-14 02:48:20 +07:00
parent 0d88601a15
commit 42b6c90c1a

View File

@@ -1,6 +1,7 @@
import antfu from '@antfu/eslint-config'; import antfu from '@antfu/eslint-config';
export default antfu({ export default antfu(
{
stylistic: { stylistic: {
indent: 2, indent: 2,
semi: true, semi: true,
@@ -9,12 +10,19 @@ export default antfu({
'style/comma-dangle': ['error', 'always-multiline'], 'style/comma-dangle': ['error', 'always-multiline'],
}, },
}, },
vue: true,
typescript: true,
rules: { rules: {
'unused-imports/no-unused-imports': 'error', 'unused-imports/no-unused-imports': 'error',
'regexp/no-obscure-range': ['error', { 'regexp/no-obscure-range': ['error', {
allowed: 'all', allowed: 'all',
}], }],
}, },
vue: true, },
typescript: true, {
}); files: ['**/*.vue'],
rules: {
'import/first': 'off',
},
},
);