Ensures that all top-level package imports adhere to the dependencies grouping conventions as outlined in the Coding Guidelines.
Specifically, this ensures that:
- An import is preceded by "External dependencies", "WordPress dependencies", or "Internal dependencies" as appropriate by the import source.
Examples of incorrect code for this rule:
import { camelCase } from 'change-case';
import { Component } from 'react';
import edit from './edit';
Examples of correct code for this rule:
/*
* External dependencies
*/
import { camelCase } from 'change-case';
/*
* WordPress dependencies
*/
import { Component } from 'react';
/*
* Internal dependencies
*/
import edit from './edit';