From d2e2023d7940168650a555fe8e61c6c651016449 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Thu, 24 Aug 2023 12:40:14 -0700 Subject: [PATCH] ci(lint): error importing E() in bootstrapTests --- .eslintrc.cjs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 2a45476fbf7..1e611f4563d 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -121,6 +121,17 @@ module.exports = { '@jessie.js/safe-await-separator': 'off', }, }, + { + // These tests use EV() instead of E(), which are easy to confuse. + // Help by erroring when E() packages are imported. + files: ['packages/boot/test/**/test-*'], + rules: { + 'no-restricted-imports': [ + 'error', + { paths: ['@endo/eventual-send', '@endo/far'] }, + ], + }, + }, { // Allow "loan" contracts to mention the word "loan". files: ['packages/zoe/src/contracts/loan/*.js'],