Skip to content

Commit

Permalink
feat(vue): enable prefer-use-template-ref rule
Browse files Browse the repository at this point in the history
  • Loading branch information
saibotk committed Nov 18, 2024
1 parent 88b5e47 commit 70d72ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/dull-dragons-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clickbar/eslint-config-vue': minor
---

Enable prefer-use-template-ref rule
4 changes: 2 additions & 2 deletions packages/vue/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ import vueParser from 'vue-eslint-parser'
* @returns FlatConfig.ConfigArray
*/
export default function vue() {
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return [
...typescript(),
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access

...pluginVue.configs['flat/recommended'],
{
files: ['**/*.vue'],
Expand Down Expand Up @@ -183,6 +182,7 @@ export default function vue() {
'vue/v-for-delimiter-style': 'error',
'vue/valid-define-options': 'error',
'vue/no-undef-components': 'error',
'vue/prefer-use-template-ref': 'error',
},
},
{
Expand Down

0 comments on commit 70d72ed

Please sign in to comment.