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

This commit is contained in:
严浩 committed 2025-11-13 22:16:40 +08:00
1 parent 4f79426206
commit 33801ca211
2 files changed
+3

No files matched your search

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