-
Upgrade
eslint
in your studiospackage.json
to^9.0.0
-
Upgrade
@sanity/eslint-config-studio
in your studiospackage.json
to^5.0.0
-
Create
eslint.config.mjs
in the root of your studio, and add the following content:import studio from '@sanity/eslint-config-studio' export default [...studio]
-
If your
.eslintrc
file only contains the defaultextends
value ({"extends": "@sanity/eslint-config-studio"}
), delete the file. Otherwise, you will need to consult the ESLint migration guide for more information on how to migrate to the new configuration format.