-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade eslint and typescript eslint * Add temporary Jest resolver * Update tests for new ESLint export
- Loading branch information
Showing
5 changed files
with
447 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// TODO: Remove workaround for https://github.com/facebook/jest/issues/9771 | ||
// after Jest v28 is released. | ||
// eslint-disable-next-line import/no-extraneous-dependencies, @typescript-eslint/no-var-requires | ||
const enhancedResolve = require('enhanced-resolve'); | ||
|
||
const resolver = enhancedResolve.create.sync({ | ||
conditionNames: ['require', 'node', 'default'], | ||
extensions: ['.js', '.json'], | ||
mainFields: ['exports', 'main', 'require'], | ||
}); | ||
|
||
module.exports = (request, options) => resolver(options.basedir, request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
resolver: './export-maps-resolver.js', | ||
}; |
Oops, something went wrong.