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
I am using plugin version 3.0.0 with Gatsby 3.0.0. There is either a bug in the docs, or a bug in the code. The code expects the pluginConfig to have an options property, but pluginConfig IS the options property from gatsby-config. (const options = pluginOptions.options || {};)
Using the following config keeps the plugin defaults.
Thanks for opening this! I see where this was a problem and I'm glad you opened a PR!
Unfortunately there are deeper issues with using this plugin with V3 regarding eslint-loader and eslint-webpack-plugin that wasn't limited to just this particular fix to making this plugin work for V3.
Looking at Gatsby's source again, things have fully transitioned to eslint-webpack-plugin - so I've rewritten the plugin to be compatible with V3 with your suggestions in mind. Thanks again!
I am using plugin version 3.0.0 with Gatsby 3.0.0. There is either a bug in the docs, or a bug in the code. The code expects the pluginConfig to have an options property, but pluginConfig IS the options property from gatsby-config. (
const options = pluginOptions.options || {};
)Using the following config keeps the plugin defaults.
Using the following config actually uses my config
So either to docs are in error, or the code should be changed to
const options = pluginOptions || {};
. I assume the error is the latter.The text was updated successfully, but these errors were encountered: