Closed ind-igo closed 3 years ago
You need .eslintrc
config file in project.
I did have the .eslintc, which was why it was confusing. When I started using the Rollup plugin it was working (not perfectly though).
You can take a look at this project https://github.com/qinghuanI/vite-react-app
I have just encountered the same problem. The fix was to tell the plugin to not lint /@react-refresh
. This can be done by either mentioning it in the exclude
array:
eslintPlugin({
exclude: ["node_modules", "/@react-refresh"],
}),
or having an include
section with only specific files from the src
directory:
eslintPlugin({
include: "src/**/*.{js,jsx,ts,tsx}",
}),
Hey there. I just installed this plugin and when running 'yarn dev', I get this error: