Skip to content

Commit

Permalink
feat(eslint): more vue rules
Browse files Browse the repository at this point in the history
  • Loading branch information
DrJume committed Apr 25, 2024
1 parent 990a9ea commit 126dd8c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ export function eslintConfig(
math: 'always',
},
],
'vue/padding-line-between-blocks': ['error', 'always'],
'vue/require-typed-ref': 'error',
'vue/require-macro-variable-name': 'error',
'vue/require-explicit-slots': 'error',
'vue/no-root-v-if': 'warn',
'vue/no-ref-object-reactivity-loss': 'warn',
'vue/no-duplicate-attr-inheritance': 'error',
'vue/define-emits-declaration': ['error', 'type-literal'],
'vue/define-props-declaration': ['error', 'type-based'],
},
},
})
Expand Down

0 comments on commit 126dd8c

Please sign in to comment.