Skip to content

Commit

Permalink
Merge pull request #8251 from Agoric/ta/lint-E
Browse files Browse the repository at this point in the history
ci(lint): error importing E() in bootstrapTests
  • Loading branch information
turadg committed Aug 24, 2023
2 parents 46a7b2e + d2e2023 commit ee7e8a0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit ee7e8a0

Please sign in to comment.