-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow use before define #9361
base: master
Are you sure you want to change the base?
allow use before define #9361
Conversation
Deploying agoric-sdk with Cloudflare Pages
|
We haven't removed all use of https://github.com/Agoric/agoric-sdk/blob/master/packages/SwingSet/src/controller/controller.js agoric-sdk/packages/vats/src/crc.js Line 16 in e4a6095
etc. I don't think we even have a lint rule to avoid it. |
Good point. But as you also point out this rule doesn't pertain to those. Any reason to keep this rule? |
use-before-defined does apply to functions, IIUC. What I meant was: we don't have a rule to say "use |
7ad4373
to
c4d7f8d
Compare
packages/governance/package.json
Outdated
@@ -34,7 +34,6 @@ | |||
"@agoric/assert": "^0.6.0", | |||
"@agoric/ertp": "^0.16.2", | |||
"@agoric/internal": "^0.3.2", | |||
"@agoric/network": "^0.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An unrelated drive-by? (no objection. Just making sure I understand.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, c4d7f8d, to improve the tred graph
packages/casting/package.json
Outdated
@@ -24,7 +24,6 @@ | |||
"dependencies": { | |||
"@agoric/internal": "^0.3.2", | |||
"@agoric/notifier": "^0.6.2", | |||
"@agoric/spawner": "^0.6.8", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An unrelated drive-by? (no objection. Just making sure I understand.)
c4d7f8d
to
6f1744c
Compare
6f1744c
to
31d3f7d
Compare
no ticket
Description
The no-use-before-define rule was motivated by when variables could hoist up in surprising ways. We always use
let
andconst
which have the Temporal Dead Zone that will throw an error if used before declaration.So we don't need this rule anymore and it's mostly noise.
Security Considerations
n/a, lint
Scaling Considerations
n/a, lint
Documentation Considerations
reduces need for docs
Testing Considerations
CI
Upgrade Considerations
n/a, lint