You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** @type {import('eslint').Linter.Config} */module.exports={extends: ['standard-with-typescript','plugin:vue/vue3-recommended'],// We have to explicit set the parser: https://stackoverflow.com/a/66525357parserOptions: {parser: '@typescript-eslint/parser'},// https://eslint.vuejs.org/user-guide/#compiler-macros-such-as-defineprops-and-defineemits-generate-no-undef-warningsenv: {'vue/setup-compiler-macros': true},overrides: [{files: ['*.ts','*.tsx'],parserOptions: {project: ['./tsconfig.json']},rules: {// The core 'no-undef' rules does not work with type definitions'no-undef': 'off'}},// storybook specific rules{files: ['**/**.stories.ts','**/**.stories.tsx'],rules: {'import/no-anonymous-default-export': 0,'no-console': 0,'@typescript-eslint/consistent-type-assertions': 0}}]}
What did you do?
Actually, it is a builtin rule that does not work well with vue file, but I think we can help improve this builtin rule in this plugin.
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
Actually, it is a builtin rule that does not work well with vue file, but I think we can help improve this builtin rule in this plugin.
What did you expect to happen?
It should not report any error.
What actually happened?
It reports an error:
Import in body of module; reorder to top.eslintimport/first
And will fix the code to this, which is wrong:
Repository to reproduce this issue
The text was updated successfully, but these errors were encountered: