Skip to content

eslint/no-void Restriction

🚧 An auto-fix is still under development.

What it does

Disallow void operators.

Example

javascript
// error
void 0;
var foo = void 0;

// success
("var foo = bar()");
("foo.void()");
("foo.void = bar");

References

Released under the MIT License.