Skip to content

Commit

Permalink
feat: rename snackbar action slot
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Apr 9, 2024
1 parent b6e5e13 commit 2afae7a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/rules/no-deprecated-slots.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,24 @@ const groups = [
})
},
},
{
components: ['VSnackbar'],
slots: ['action'],
handler (context, node, directive, param) {
context.report({
node: directive,
messageId: 'renamed',
data: {
component: node.parent.name,
slot: directive.key.argument.name,
newSlot: 'actions',
},
fix (fixer) {
return fixer.replaceText(directive.key.argument, 'action')
},
})
},
},
]

// ------------------------------------------------------------------------------
Expand Down

0 comments on commit 2afae7a

Please sign in to comment.