Open mheob opened 1 month ago
Attempts at using this with Flat Compat returns the below error:
Error: Key "plugins": Cannot redefine plugin "react" at .../sanity-cms/node_modules/@humanwhocodes/object-schema/src/object-schema.js:250:27
eslint.config.js settings tried the below with the same error each time
...compat.extends("@sanity/eslint-config-studio")
...compat.extends(resolve(__dirname, "node_modules/@sanity/eslint-config-studio")),
Is your feature request related to a problem?
ESLint has changed the default configuration style to flat config. Currently this extension does not work immediately.
Describe the solution you'd like
To use this extension in the latest ESLint versions, it should support flat config. A migration guide is provided by ESLint.