#
no-global-import
#
Description
Import statement includes an entire file instead of selected symbols.
#
Options
This rule does not require any options.
#
Example Config
{
"id": "no-global-import",
"severity": "WARNING"
}
#
Examples
#
Good
import names explicitly
import {A} from "./A.sol"
import entire file into a name
import "./A.sol" as A
import entire file into a name
import * as A from "./A.sol"
#
Bad
import all members from a file
import * from "foo.sol";
import an entire file
import "foo.sol"