From c44ed442f4ad044b2e6dd7064e7430fab7ec4f52 Mon Sep 17 00:00:00 2001 From: Meredith Lancaster Date: Thu, 5 Feb 2026 13:09:08 -0800 Subject: [PATCH] update eslint and ts configs to handle esm Signed-off-by: Meredith Lancaster --- eslint.config.mjs | 7 +++++++ tsconfig.json | 2 +- tsconfig.lint.json | 5 +++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 4db8163..34400a1 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -89,6 +89,13 @@ export default tseslint.config( allowObject: true } ] + }, + settings: { + 'import/resolver': { + typescript: { + project: './tsconfig.lint.json' + } + } } } ) diff --git a/tsconfig.json b/tsconfig.json index 1d6bf59..b51ca7f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,5 +16,5 @@ "skipLibCheck": true, "newLine": "lf" }, - "exclude": ["./dist", "./node_modules", "./__tests__", "./coverage"] + "exclude": ["./dist", "./node_modules", "./__tests__", "./coverage", "./jest.config.ts"] } diff --git a/tsconfig.lint.json b/tsconfig.lint.json index a08b563..cd9a6e7 100644 --- a/tsconfig.lint.json +++ b/tsconfig.lint.json @@ -2,8 +2,9 @@ "$schema": "https://json.schemastore.org/tsconfig", "extends": "./tsconfig.json", "compilerOptions": { - "noEmit": true + "noEmit": true, + "rootDir": "." }, - "include": ["./__tests__/**/*", "./src/**/*"], + "include": ["./__tests__/**/*", "./src/**/*", "./jest.config.ts"], "exclude": ["./dist", "./node_modules", "./coverage", "*.json"] }