Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-havven

kevinbrown296MIT1.1.0

This repo contains custom eslint rules used in the Havven project.

readme

Havven ESLint Plugin

This repo contains custom eslint rules used in the Havven project.

There's only one rule at the moment, which prevents code that looks like this:

assert.revert(/* some block or promise */);

The rule insists that the code looks like this instead:

await assert.revert(/* some block or promise */);

This is important, because without the await, the failure from assert.revert is simply discarded as a failing promise, and because of how mocha is set up in truffle, this doesn't print any warning or anything. So it's important that the project enforce that you can't call assert.revert without await in front of it.