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/attributes-order': 'error',
|
||||||
'vue/multi-word-component-names': 'off',
|
'vue/multi-word-component-names': 'off',
|
||||||
|
'vue/padding-line-between-blocks': ['error', 'always'],
|
||||||
|
|
||||||
// '@stylistic/padding-line-between-statements': [
|
// '@stylistic/padding-line-between-statements': [
|
||||||
// 'error',
|
// 'error',
|
||||||
// { blankLine: 'always', prev: '*', next: ['const', 'let', 'var'] },
|
// { blankLine: 'always', prev: '*', next: ['const', 'let', 'var'] },
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ const FComponent: FunctionalComponent<{ prop: string }> = (props /* context */)
|
|||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NCard title="函数式组件(TSX)示例">
|
<NCard title="函数式组件(TSX)示例">
|
||||||
<FComponent prop="some-prop-value" />
|
<FComponent prop="some-prop-value" />
|
||||||
|
|||||||
Reference in New Issue
Block a user