Enforce external, internal dependencies docblocks
October 21, 2016 ยท View on GitHub
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.
Rule Details
The following patterns are considered warnings:
import React from 'react';
The following patterns are not warnings:
/**
* External dependencies
*/
import React from 'react';