2026-03-26 20:18:20 +08:00
|
|
|
import { defineConfig } from '@soybeanjs/eslint-config';
|
2026-04-03 13:42:55 +08:00
|
|
|
import tsEslintPlugin from '@typescript-eslint/eslint-plugin';
|
2026-03-26 20:18:20 +08:00
|
|
|
|
|
|
|
|
export default defineConfig(
|
|
|
|
|
{ vue: true, unocss: true },
|
|
|
|
|
{
|
|
|
|
|
rules: {
|
|
|
|
|
'vue/multi-word-component-names': [
|
|
|
|
|
'warn',
|
|
|
|
|
{
|
|
|
|
|
ignores: ['index', 'App', 'Register', '[id]', '[url]']
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
'vue/component-name-in-template-casing': [
|
|
|
|
|
'warn',
|
|
|
|
|
'PascalCase',
|
|
|
|
|
{
|
|
|
|
|
registeredComponentsOnly: false,
|
|
|
|
|
ignores: ['/^icon-/']
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
'unocss/order-attributify': 'off'
|
|
|
|
|
}
|
2026-04-03 13:42:55 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
files: ['**/*.ts', '**/*.tsx', '**/*.vue'],
|
|
|
|
|
plugins: {
|
|
|
|
|
'@typescript-eslint': tsEslintPlugin
|
|
|
|
|
},
|
|
|
|
|
rules: {
|
|
|
|
|
'@typescript-eslint/no-unused-vars': [
|
|
|
|
|
'warn',
|
|
|
|
|
{
|
|
|
|
|
varsIgnorePattern: '^_',
|
|
|
|
|
argsIgnorePattern: '^_',
|
|
|
|
|
caughtErrorsIgnorePattern: '^_',
|
|
|
|
|
ignoreRestSiblings: true
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
2026-03-26 20:18:20 +08:00
|
|
|
}
|
|
|
|
|
);
|