Skip to content

Commit

Permalink
fix: better typescript defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Feb 27, 2024
1 parent 7906501 commit b3f47c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// make sure you load `sanity/react` _before_ `sanity/typescript`
module.exports = {
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended',
'./index',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
env: {
node: true,
Expand Down Expand Up @@ -34,7 +34,7 @@ module.exports = {
},
overrides: [
{
files: ['*.ts'],
files: ['*.ts', '*.tsx'],
rules: {
// Enable for TS files, but allow TSX (eg react components)
'@typescript-eslint/explicit-module-boundary-types': ['warn'],
Expand Down

0 comments on commit b3f47c4

Please sign in to comment.