endojs / Jessie

Tiny subset of JavaScript for ocap-safe universal mobile code
Apache License 2.0
279 stars 16 forks source link

ESLint `await` rule cleanup #108

Closed michaelfig closed 1 year ago

michaelfig commented 1 year ago

Closes #107

Separate the recommended @jessie.js/safe-await-separator rule from the @jessie.js/no-nested-await rule (now activated by // @jessie-check).

This should be the final step before upgrading the @jessie.js/eslint-plugin package used by the Agoric SDK.

michaelfig commented 1 year ago

To be sure, let's run this over that repo and confirming that the the only errors are ones we want to see.

I did this with Agoric/agoric-sdk#7870 . It looked good to me.

If you want to reproduce my results:

(cd Jessie/packages/eslint-plugin && yarn link)
cd agoric-sdk
yarn link @jessie.js/eslint-plugin
yarn lint