Co-authored-by: LemonNeko <17664845+LemonNekoGH@users.noreply.github.com>
59 lines
1.8 KiB
TypeScript
59 lines
1.8 KiB
TypeScript
import antfu from '@antfu/eslint-config'
|
|
|
|
export default await antfu(
|
|
{
|
|
unocss: true,
|
|
vue: true,
|
|
ignores: [
|
|
'cspell.config.yaml',
|
|
'cspell.config.yml',
|
|
'crowdin.yaml',
|
|
'crowdin.yml',
|
|
'**/assets/js/**',
|
|
'**/assets/live2d/models/**',
|
|
'apps/stage-tamagotchi/out/**',
|
|
'apps/stage-tamagotchi/src/bindings/**',
|
|
'apps/stage-tamagotchi/src-tauri/**',
|
|
'apps/stage-tamagotchi-electron/out/**',
|
|
'apps/stage-tamagotchi-electron/src/renderer/bindings/**',
|
|
'crates/**',
|
|
'**/drizzle/**',
|
|
'**/.astro/**',
|
|
],
|
|
rules: {
|
|
'vue/prefer-separate-static-class': 'off',
|
|
'yaml/plain-scalar': 'off',
|
|
'import/order': 'off',
|
|
'antfu/import-dedupe': 'error',
|
|
'style/padding-line-between-statements': 'error',
|
|
'perfectionist/sort-imports': [
|
|
'error',
|
|
{
|
|
groups: [
|
|
'type-builtin',
|
|
'type-import',
|
|
'type-internal',
|
|
['type-parent', 'type-sibling', 'type-index'],
|
|
'default-value-builtin',
|
|
'named-value-builtin',
|
|
'value-builtin',
|
|
'default-value-external',
|
|
'named-value-external',
|
|
'value-external',
|
|
'default-value-internal',
|
|
'named-value-internal',
|
|
'value-internal',
|
|
['default-value-parent', 'default-value-sibling', 'default-value-index'],
|
|
['named-value-parent', 'named-value-sibling', 'named-value-index'],
|
|
['wildcard-value-parent', 'wildcard-value-sibling', 'wildcard-value-index'],
|
|
['value-parent', 'value-sibling', 'value-index'],
|
|
'side-effect',
|
|
'style',
|
|
],
|
|
newlinesBetween: 'always',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
)
|