Closed
Description
In non-fixture example JavaScript files, typically, the last require
statement should always be a relative require
. E.g.,
// Bad...
var beep = require( '@stdlib/boop/beep' );
var foo = require( '@stdlib/bar/foo' );
// Good...
var beep = require( '@stdlib/boop/beep' );
var foo = require( './../lib' );
The reason for this practice is to make explicit that the API being demonstrated belongs to the respective package and also mitigates potential copy-paste bugs.
Time estimate without AI: 1h.
Time estimate with AI: 30min.