34 lines
742 B
TypeScript
34 lines
742 B
TypeScript
|
|
import antfu from '@antfu/eslint-config';
|
||
|
|
|
||
|
|
export default antfu({
|
||
|
|
unocss: true,
|
||
|
|
formatters: true,
|
||
|
|
ignores: [
|
||
|
|
'dist',
|
||
|
|
'docs',
|
||
|
|
'public',
|
||
|
|
'node_modules',
|
||
|
|
'apps/**/src/icons',
|
||
|
|
'apps/**/public',
|
||
|
|
'packages/lowcode-create/types',
|
||
|
|
'**/*.md',
|
||
|
|
'apps/lcdp/src/icon-w/**',
|
||
|
|
'packages/print-webapp/**/*',
|
||
|
|
],
|
||
|
|
rules: {
|
||
|
|
'no-console': 'off',
|
||
|
|
'curly': ['error', 'all'],
|
||
|
|
'style/brace-style': ['error', '1tbs', { allowSingleLine: false }],
|
||
|
|
'semi': ['error', 'always'],
|
||
|
|
'style/semi': ['error', 'always'],
|
||
|
|
// 禁用与ESLint 9.x不兼容的unicorn规则
|
||
|
|
'unicorn/error-message': 'off',
|
||
|
|
},
|
||
|
|
}, {
|
||
|
|
settings: {
|
||
|
|
unocss: {
|
||
|
|
configFile: './apps/lcdp/uno.config.ts',
|
||
|
|
},
|
||
|
|
},
|
||
|
|
});
|