Skip to content

Commit

Permalink
fix: fixed broken ES imports by using file extensions in imports stat…
Browse files Browse the repository at this point in the history
…ements
  • Loading branch information
simonmcallister0210 authored Dec 31, 2022
1 parent 92e5719 commit 04151b5
Show file tree
Hide file tree
Showing 15 changed files with 1,144 additions and 34 deletions.
5 changes: 4 additions & 1 deletion config/eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint"]
"plugins": ["@typescript-eslint", "import"],
"rules": {
"import/extensions": [2, "ignorePackages"]
}
}
6 changes: 5 additions & 1 deletion config/jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
"ts-jest",
{
"isolatedModules": true, // TODO: this is a workaround to fix ts-jest performance issue. In the next major version v24 ts-jest is expected to use swc to improve overall performance. As soon as v24 becomes available upgrade. See this Github discussion: https://github.com/kulshekhar/ts-jest/issues/1115#issuecomment-1094226686
"tsconfig": "./config/tsconfig.esm.json"
"tsconfig": "./config/tsconfig.esm.json",
"useESM": true
}
]
},
"moduleNameMapper": {
"(.+)\\.js": "$1"
}
}
Loading

0 comments on commit 04151b5

Please sign in to comment.