From 7f6699e235dd4940c39d51e0f56bd5483f398f5e Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 20 Jun 2025 14:07:22 -0700 Subject: [PATCH] tsconfig: Enable allowImportingTsExtensions. Signed-off-by: Anders Kaseorg --- tsconfig.json | 1 + xo.config.cjs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/tsconfig.json b/tsconfig.json index fb82846f..5ff68edb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,7 @@ "target": "esnext", "module": "esnext", "moduleResolution": "bundler", + "allowImportingTsExtensions": true, "esModuleInterop": true, "paths": { // https://github.com/getsentry/sentry-electron/issues/957 diff --git a/xo.config.cjs b/xo.config.cjs index bc821146..d5a35112 100644 --- a/xo.config.cjs +++ b/xo.config.cjs @@ -2,6 +2,11 @@ module.exports = { prettier: true, + settings: { + n: { + typescriptExtensionMap: [], + }, + }, rules: { "@typescript-eslint/no-dynamic-delete": "off", "arrow-body-style": "error",