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
When a .eslintrc is used the plugin-kit correctly detects that I have @sanity/no-v2-imports in my extends array.
But when using .eslintrc.js I get this error:
✖ 4 problems (3 errors, 1 warning)
ESLint detected Studio V2 imports that are no longer available.
It is recommended configure @sanity/eslint-config-no-v2-imports for ESLint.
Run:
npm install --save-dev @sanity/eslint-config-no-v2-imports
In .eslintrc add:
"extends": ["@sanity/no-v2-imports"]
This way, V2-imports can be identified directly in the IDE, or using eslint CLI.
For more, see https://github.com/sanity-io/eslint-config-no-v2-imports
If the plugin package does not use eslint, disable this check.
To skip this validation add the following to your package.json:
"sanityPlugin": {
"verifyPackage": {
"eslintImports": false
}
}
When a
.eslintrc
is used the plugin-kit correctly detects that I have@sanity/no-v2-imports
in myextends
array.But when using
.eslintrc.js
I get this error:Repro: https://github.com/sanity-io/sanity-plugin-mux-input
The text was updated successfully, but these errors were encountered: