From f9765f39fe58189354e3b6b5f9601deb1bef1a09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20Poduszl=C3=B3?= Date: Fri, 10 Apr 2020 10:18:49 +0200 Subject: [PATCH] fix: disable unnecessary module resolution check for TypeScript files (#85) --- lib/shared.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/shared.js b/lib/shared.js index bff7c5d..f0a00d6 100644 --- a/lib/shared.js +++ b/lib/shared.js @@ -155,6 +155,12 @@ module.exports = { // https://github.com/iamturns/eslint-config-airbnb-typescript/issues/50 // This will be caught by TypeScript compiler if `strictNullChecks` (or `strict`) is enabled 'no-undef': 'off', + + /* Using TypeScript makes it safe enough to disable the checks below */ + + // Disable ESLint-based module resolution check for improved monorepo support + // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md + 'import/no-unresolved': 'off', }, }, ],