Skip to content

Commit

Permalink
lint/testing: support typescript (#37378)
Browse files Browse the repository at this point in the history
  • Loading branch information
samouri committed Jan 13, 2022
1 parent 7557005 commit e9b16ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Expand Up @@ -348,6 +348,8 @@ module.exports = {
'jsdoc/require-param': 0,
'jsdoc/require-param-type': 0,
'jsdoc/require-returns': 0,
'no-undef': 0,
'import/no-unresolved': 0
},
},
{
Expand Down
3 changes: 2 additions & 1 deletion build-system/babel-config/import-resolver.js
Expand Up @@ -42,12 +42,13 @@ function readJsconfigPaths() {

/**
* Import map configuration.
* @return {!Object}
* @return {Object}
*/
function getImportResolver() {
return {
root: ['.'],
alias: readJsconfigPaths(),
extensions: ['.js', '.jsx', '.ts', 'tsx'],
babelOptions: {
caller: {
name: 'import-resolver',
Expand Down
2 changes: 1 addition & 1 deletion build-system/tasks/runtime-test/runtime-test-base.js
Expand Up @@ -232,7 +232,7 @@ class RuntimeTestConfig {
}
);
this.esbuild = {
target: 'es5',
target: 'esnext', // We use babel for transpilation.
define: {
'process.env.NODE_DEBUG': 'false',
'process.env.NODE_ENV': '"test"',
Expand Down

0 comments on commit e9b16ad

Please sign in to comment.