Skip to content

Commit

Permalink
chore(import): disable import/extensions rule for get-it middleware i…
Browse files Browse the repository at this point in the history
…mport

This is done to unblock us, more investigation needed, but seems to work just fine without it.
  • Loading branch information
rexxars committed Mar 25, 2024
1 parent f568e14 commit c636106
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/@sanity/import-cli/src/sanity-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const path = require('path')
const {createClient} = require('@sanity/client')
const sanityImport = require('@sanity/import')
const {getIt} = require('get-it')
// eslint-disable-next-line import/extensions
const {promise} = require('get-it/middleware')
const meow = require('meow')
const ora = require('ora')
Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/import/src/util/getHashedBufferForUri.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const crypto = require('crypto')
const {URL} = require('url')
const {getIt} = require('get-it')
// eslint-disable-next-line import/extensions
const {promise} = require('get-it/middleware')
const getUri = require('get-uri')
const miss = require('mississippi')
Expand Down
1 change: 1 addition & 0 deletions packages/@sanity/import/test/helpers/helpers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const {createClient, requester: defaultRequester} = require('@sanity/client')
// eslint-disable-next-line import/extensions
const {injectResponse} = require('get-it/middleware')
const noop = require('lodash/noop')

Expand Down

0 comments on commit c636106

Please sign in to comment.