mirror of
https://github.com/ayangweb/BongoCat.git
synced 2026-03-12 17:51:48 +08:00
28 lines
751 B
TypeScript
28 lines
751 B
TypeScript
import antfu from '@antfu/eslint-config'
|
|
|
|
export default antfu({
|
|
formatters: true,
|
|
unocss: true,
|
|
rules: {
|
|
'antfu/if-newline': 'off',
|
|
'style/brace-style': ['error', '1tbs'],
|
|
'ts/no-use-before-define': 'off',
|
|
'unused-imports/no-unused-imports': 'error',
|
|
'perfectionist/sort-imports': 'off',
|
|
'import/order': [
|
|
'error',
|
|
{
|
|
'newlines-between': 'always',
|
|
'groups': ['type', 'builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object'],
|
|
'alphabetize': {
|
|
order: 'asc',
|
|
caseInsensitive: true,
|
|
},
|
|
},
|
|
],
|
|
'vue/attributes-order': ['error', { alphabetical: true }],
|
|
'vue/max-attributes-per-line': 'error',
|
|
},
|
|
ignores: ['**/*.toml'],
|
|
})
|