38 lines
840 B
TypeScript
38 lines
840 B
TypeScript
import antfu from '@antfu/eslint-config'
|
|
import { importX } from 'eslint-plugin-import-x'
|
|
|
|
export default await antfu(
|
|
{
|
|
unocss: true,
|
|
vue: true,
|
|
ignores: [
|
|
'**/assets/js/**',
|
|
'**/assets/live2d/models/**',
|
|
'apps/stage-tamagotchi/out/**',
|
|
'apps/stage-tamagotchi/src-tauri/**',
|
|
'crates/**',
|
|
'**/drizzle/**',
|
|
'**/.astro/**',
|
|
],
|
|
rules: {
|
|
'ts/ban-ts-comment': 'off',
|
|
'antfu/import-dedupe': 'error',
|
|
'style/padding-line-between-statements': 'error',
|
|
'import-x/order': [
|
|
'error',
|
|
{
|
|
'groups': [
|
|
['type'],
|
|
['builtin', 'external'],
|
|
['parent', 'sibling', 'index'],
|
|
],
|
|
'newlines-between': 'always',
|
|
},
|
|
],
|
|
},
|
|
plugins: {
|
|
'import-x': importX,
|
|
},
|
|
},
|
|
)
|