style(eslint): enforce padding between blocks in vue components
All checks were successful
CI/CD Pipeline / playwright (push) Successful in 1m34s
CI/CD Pipeline / build-and-deploy (push) Successful in 1m56s

This commit is contained in:
严浩
2025-11-13 22:16:40 +08:00
parent 4f79426206
commit 33801ca211
2 changed files with 3 additions and 0 deletions

View File

@@ -101,6 +101,8 @@ export default defineConfigWithVueTs(
],
'vue/attributes-order': 'error',
'vue/multi-word-component-names': 'off',
'vue/padding-line-between-blocks': ['error', 'always'],
// '@stylistic/padding-line-between-statements': [
// 'error',
// { blankLine: 'always', prev: '*', next: ['const', 'let', 'var'] },

View File

@@ -24,6 +24,7 @@ const FComponent: FunctionalComponent<{ prop: string }> = (props /* context */)
</>
);
</script>
<template>
<NCard title="函数式组件TSX示例">
<FComponent prop="some-prop-value" />