Files
cn-rdms-web/eslint.config.js

43 lines
972 B
JavaScript
Raw Normal View History

2026-03-26 20:18:20 +08:00
import { defineConfig } from '@soybeanjs/eslint-config';
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'
}
},
{
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
}
);