Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7cc4613

Browse files
author
Simon Holthausen
committed
fix
1 parent 6256939 commit 7cc4613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/postprocess.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const is_valid_message = (block, message, translation) => {
9898
case 'no-labels': return get_identifier(get_referenced_string(block, message)) !== '$';
9999
case 'no-restricted-syntax': return message.nodeType !== 'LabeledStatement' || get_identifier(get_referenced_string(block, message)) !== '$';
100100
case 'no-self-assign': return !state.var_names.has(get_identifier(get_referenced_string(block, message)));
101-
case 'no-undef': return get_referenced_string(block, message) !== '$$Generic';
101+
case 'no-undef': return !['$$Generic', '$$Props', '$$Slots', '$$Events'].includes(get_referenced_string(block, message));
102102
case 'no-unused-labels': return get_referenced_string(block, message) !== '$';
103103
case '@typescript-eslint/quotes':
104104
case 'quotes': return !translation.options.in_quoted_attribute;

0 commit comments

Comments
 (0)