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:
Corey Farwell
2025-09-07 17:41:42 -04:00
committed by GitHub
parent 27916273a2
commit a43446909c
367 changed files with 631 additions and 629 deletions

View File

@@ -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"]
}
}
},