Skip to content

imports-on-top

Enforces that all import statements are at the top of the file.

Examples of correct code for this rule:

import "path/to/contract.sol";
contract Example {}

Examples of incorrect code for this rule:

contract Example {}
import "path/to/contract.sol";