Files
moeka-project/eslint.config.ts
T
MakitoandNeko 24d2ce3cd9 refactor(stage-tamagotchi): type-safe commands codegen poc (#258)
* refactor(stage-tamagotchi): type-safe commands codegen poc

* chore: remove the useless comment

* chore: [suggestion] remove comments

Co-authored-by: Neko <neko@ayaka.moe>

* chore: [suggestion] remove comments

Co-authored-by: Neko <neko@ayaka.moe>

* chore: [suggestion] remove comments

Co-authored-by: Neko <neko@ayaka.moe>

---------

Co-authored-by: Neko <neko@ayaka.moe>
2025-07-06 00:22:31 +09:00

51 lines
1.5 KiB
TypeScript

import antfu from '@antfu/eslint-config'
export default await antfu(
{
unocss: true,
vue: true,
ignores: [
'**/assets/js/**',
'**/assets/live2d/models/**',
'apps/stage-tamagotchi/out/**',
'apps/stage-tamagotchi/src/commands/bindings/**',
'apps/stage-tamagotchi/src-tauri/**',
'crates/**',
'**/drizzle/**',
'**/.astro/**',
],
rules: {
'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',
},
],
},
},
)