Skip to content

Commit

Permalink
style(governance): lint for Jessie dialect (WIP)
Browse files Browse the repository at this point in the history
The code is remarkably close to Jessie. Remaining issues include:

 - new WeakMap()
 - dynamic property names in paramManager
  • Loading branch information
dckc committed Sep 22, 2021
1 parent 1eb2464 commit 72b8586
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/governance/src/binaryVoteCounter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-check
// @jessie-check

import { Far } from '@agoric/marshal';
import { makePromiseKit } from '@agoric/promise-kit';
Expand Down Expand Up @@ -106,7 +107,7 @@ const makeBinaryVoteCounter = (questionSpec, threshold, instance) => {
if (choice < 0) {
spoiled += shares;
} else {
tally[choice] += shares;
tally[+choice] += shares;
}
});

Expand Down
1 change: 1 addition & 0 deletions packages/governance/src/closingRule.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-check
// @jessie-check

// Standard closing rule is a deadline and Timer. An alternative might allow for
// emergency votes that can close as soon as a quorum or other threshold is
Expand Down
1 change: 1 addition & 0 deletions packages/governance/src/committeeRegistrar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-check
// @jessie-check

import { E } from '@agoric/eventual-send';
import { Far } from '@agoric/marshal';
Expand Down
1 change: 1 addition & 0 deletions packages/governance/src/contractGovernor.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-check
// @jessie-check

import { E } from '@agoric/eventual-send';
import { Far } from '@agoric/marshal';
Expand Down
1 change: 1 addition & 0 deletions packages/governance/src/governParam.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-check
// @jessie-check

import { E } from '@agoric/eventual-send';
import { Far } from '@agoric/marshal';
Expand Down
1 change: 1 addition & 0 deletions packages/governance/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-check
// @jessie-check

export {
ChoiceMethod,
Expand Down
1 change: 1 addition & 0 deletions packages/governance/src/question.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-check
// @jessie-check

import { Far, passStyleOf } from '@agoric/marshal';
import { sameStructure } from '@agoric/same-structure';
Expand Down
1 change: 1 addition & 0 deletions packages/governance/src/registrarTools.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-check
// @jessie-check

import { E } from '@agoric/eventual-send';
import { allComparable } from '@agoric/same-structure';
Expand Down
1 change: 1 addition & 0 deletions packages/governance/src/validators.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-check
// @jessie-check

import { E } from '@agoric/eventual-send';

Expand Down

0 comments on commit 72b8586

Please sign in to comment.