Files
basic/eslint.config.js
T
2026-04-01 03:38:00 +08:00

43 lines
748 B
JavaScript
Executable File

import antfu from '@antfu/eslint-config'
export default antfu(
{
vue: true,
unocss: true,
markdown: false,
ignores: [
'**/public',
'**/dist*',
],
},
{
rules: {
'e18e/prefer-static-regex': 'off',
'eslint-comments/no-unlimited-disable': 'off',
'curly': ['error', 'all'],
'ts/no-unused-expressions': ['error', {
allowShortCircuit: true,
allowTernary: true,
}],
},
},
{
files: [
'src/**/*.vue',
],
rules: {
'vue/block-order': ['error', {
order: ['script', 'template', 'style'],
}],
},
},
{
files: [
'pnpm-workspace.yaml',
],
rules: {
'pnpm/yaml-enforce-settings': 'off',
},
},
)