style(eslint): enforce padding between blocks in vue components
This commit is contained in:
@@ -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'] },
|
||||
|
||||
@@ -24,6 +24,7 @@ const FComponent: FunctionalComponent<{ prop: string }> = (props /* context */)
|
||||
</>
|
||||
);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<NCard title="函数式组件(TSX)示例">
|
||||
<FComponent prop="some-prop-value" />
|
||||
|
||||
Reference in New Issue
Block a user