Skip to content

Commit

Permalink
feat: use eslint 9 for new studios
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars authored and bjoerge committed Dec 10, 2024
1 parent 305a143 commit d38be81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ export async function bootstrapLocalTemplate(
writeFileIfNotExists(`sanity.cli.${codeExt}`, cliConfig),
writeFileIfNotExists('package.json', packageManifest),
writeFileIfNotExists(
'.eslintrc',
`${JSON.stringify({extends: '@sanity/eslint-config-studio'}, null, 2)}\n`,
'eslint.config.mjs',
`import studio from '@sanity/eslint-config-studio'\n\nexport default [...studio]\n`,
),
])

Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/cli/src/studioDependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const studioDependencies = {
'@sanity/eslint-config-studio': 'latest',
// When using typescript, we'll want the these types too, so might as well install them
'@types/react': '^18.0.25',
'eslint': '^8.6.0',
'eslint': '^9.9.0',
'prettier': '^3.0.2',
'typescript': '^5.1.6', // Peer dependency of eslint-config-studio (implicitly)
},
Expand Down

0 comments on commit d38be81

Please sign in to comment.