mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
Remove the need to specify TypeScript file extensions in imports (#3094)
* Don't require TS extensions in imports * Resolve all import extension errors * Remove file extension from import paths used in mocks * Remove .d of type definition file paths * Remove .d of type definition file and import as type --------- Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
This commit is contained in:
@@ -153,7 +153,8 @@ module.exports = {
|
||||
"import/resolver": {
|
||||
"babel-module": { allowExistingDirectories: true },
|
||||
node: {
|
||||
extensions: [".js", ".jsx", ".ts", ".tsx"]
|
||||
extensions: [".js", ".jsx", ".ts", ".tsx"],
|
||||
moduleDirectory: ["node_modules", "src"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user