-
Already use unplugin-auto-import according to https://github.com/unplugin/unplugin-auto-import?tab=readme-ov-file#eslint. Still got eslint error 'definePage' is not defined. And, the code runs normally. Can I avoid manually importing 'definePage'? repo: https://github.com/qiuqimin/unplugin-vue-router-auto-imports-eslint |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You need to disable in eslint config or you can safely disable the rule if you use TypeScript. I added this to docs: 2126ea0 |
Beta Was this translation helpful? Give feedback.
-
@posva Once I configure VueRouterAutoImports, can 'definePage' be automatically imported like 'useRoute' or 'useRouter' without having to manually handle ESLint errors? |
Beta Was this translation helpful? Give feedback.
You need to disable in eslint config or you can safely disable the rule if you use TypeScript.
I added this to docs: 2126ea0