Skip to content

Latest commit

 

History

History
42 lines (23 loc) · 845 Bytes

no-global-stop-start.md

File metadata and controls

42 lines (23 loc) · 845 Bytes

Disallow global stop/start (qunit/no-global-stop-start)

💼 This rule is enabled in the ✅ recommended config.

QUnit 2.0 is deprecating and removing all of its global exports, including stop() and start().

Rule Details

The following patterns are considered warnings:

stop();

start();

The following patterns are not warnings:

QUnit.stop();

QUnit.start();

var done = assert.async();
done();

When Not To Use It

If you are working in a codebase that will not use QUnit 2.0, this rule can be safely disabled.

Further Reading