Closed ghost closed 1 year ago
same issue
I faced the same issue when I tried to use ES modules without babel.
I got this to work with using eslintPlugin.default()
instead. However I'm trying to use this with Svelte and don't get any linting errors showing up.
I am dealing with the same problem when using "type": "module"
in package.json for using esm modules. With that change this error occurs. but i need to change to ESM because quite some packages i use are ESM only in their newest versions. So.. seems like i cannot use linting?
@Jakobud sadly using eslintPlugin.default()
does not fix it for me.
Now exports correctly according to different environments.
Describe the bug 🐛
I'm currently refactoring a legacy project 👎 Everything is fine until I decide to add code linting. Because this application is powered by Vite, obviously I must add
vite-plugin-eslint
as a devDependency.After running
build
command, I got errorTypeError: eslintPlugin is not a function
.Reproduce
Changing
vite.config.js
to:Then running
build
command.Logs
System information