When importing modules, you should distinguish external dependencies from internal dependencies using DocBlock multi-line comments. Because Calypso modifies the NODE_PATH
to allow importing modules directly from the root client/
directory, it can be otherwise unclear whether an imported module is an internal or an external dependency.
The following patterns are considered warnings:
import React from 'react';
The following patterns are not warnings:
/**
* External dependencies
*/
import React from 'react';