[x] I have tried restarting my IDE and the issue persists.
[x] I have read the FAQ and my problem is not listed.
Tell us about your environment
ESLint version: 9.6.0
eslint-plugin-vue version: 9.27.0
Vue version:
Node version:
Operating System:
Please show your full configuration:
What did you do?
Sorry for not filling out everything, I think the problem is straightforward and easily reproducible: require-typed-object-prop does not respect the lang attribute on <script setup> and expects type annotation to be present in plain JS code.
I've read the limitations section on the rule's page saying it is not meant to be used in JS projects, but I have some with mixed codebase (mainly as a result of TS migration or adjusting someone else's components code written in JS) and I just felt like detecting the language is something that seems possible to me.
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
Sorry for not filling out everything, I think the problem is straightforward and easily reproducible:
require-typed-object-prop
does not respect thelang
attribute on<script setup>
and expects type annotation to be present in plain JS code.Just insert the following in the playground on this rule's page:
I've read the limitations section on the rule's page saying it is not meant to be used in JS projects, but I have some with mixed codebase (mainly as a result of TS migration or adjusting someone else's components code written in JS) and I just felt like detecting the language is something that seems possible to me.
What did you expect to happen?
What actually happened?
Repository to reproduce this issue