-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* @file Module with linting errors, to verify the linting config detects them. | ||
* This assumes `reportUnusedDisableDirectives: "error" in the local config. | ||
*/ | ||
|
||
// TODO error on exports that: | ||
// - aren't hardened (probably a new rule in @endo/eslint-plugin ) | ||
// - don't satisfy orchestration flow type | ||
|
||
// eslint-disable-next-line no-restricted-syntax -- intentional for test | ||
import { E } from '@endo/far'; | ||
|
||
export function notFlow() { | ||
console.log('This function is not a flow'); | ||
} | ||
|
||
export async function notHardened() { | ||
console.log('This function is the most minimal flow, but it’s not hardened'); | ||
} | ||
|
||
export async function usesE(orch, { someEref }) { | ||
// eslint-disable-next-line no-restricted-syntax -- intentional for test | ||
await E(someEref).foo(); | ||
} |