test: add valid example for empty defineEmits#2914
test: add valid example for empty defineEmits#2914Sysix wants to merge 1 commit intovuejs:masterfrom
defineEmits#2914Conversation
|
|
I don't understand, could you please explain in more detail? |
It just extends the test suite with this special use case. (See linked code part). I am currently working on the implementation of the rule in If you think, this is not helpful as a test case, feel free to close. |
I'll close it. |
related #11440 https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/valid-define-emits.md Extended the docs and tests to cover (non) empty `defineEmits()` with `export default` of other script block. Related vuejs/eslint-plugin-vue#2914
Covering this part of the code:
eslint-plugin-vue/lib/rules/valid-define-emits.js
Lines 121 to 128 in a198b52
Found in oxc-project/oxc#12545