eslint: update rules

This commit is contained in:
undefined committed 2025-11-03 17:01:17 +08:00
1 parent 2eceb57219
commit 40114323e4
2 files changed
+6 -5

No files matched your search

+3 -2
View File
@@ -204,6 +204,7 @@ const base = (option, ...args) => antfu(
}],
'style/jsx-closing-bracket-location': 'off',
'style/jsx-closing-tag-location': 'off',
'style/jsx-curly-spacing': ['warn', { children: true, when: 'never' }],
'style/jsx-function-call-newline': 'off',
'style/jsx-indent-props': 'off',
'style/jsx-one-expression-per-line': 'off',
@@ -332,13 +333,13 @@ const base = (option, ...args) => antfu(
},
github.getFlatConfigs().react,
deMorgan.configs.recommended,
{
...((option.vue ?? true) ? [{
files: ['**/*.vue'],
rules: {
'vue/block-order': ['warn', { order: ['template', 'script[setup]', 'script:not([setup])', 'style[scoped]', 'style:not([scoped])'] }],
'vue/singleline-html-element-content-newline': 'off',
},
},
}] : []),
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx', '**/*.cjs', '**/*.cts', '**/*.mjs', '**/*.mts'],