From e0d68671eaf53a33e7c9c9f62d3e5e161490751b Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Mon, 13 Jul 2020 17:06:32 +0800 Subject: [PATCH] - Linting: Avoid warnings for instrumented files (currently test files depend on instrumentation step, so we don't want CI checking the paths if not created there) --- .eslintrc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 340fdaf5..823b3cb9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -292,8 +292,8 @@ module.exports = { // These errors are caused in Cypress files if user has not // yet instrumented code; need to reinvestigate why we had to // instrument separately from nyc mocha - 'import/no-unresolved': 'warn', - 'node/no-missing-import': 'warn', + 'import/no-unresolved': ['error', {ignore: ['/instrumented/']}], + 'node/no-missing-import': 'off', 'chai-expect-keywords/no-unsupported-keywords': [ 'error', {