From b91d312f49b22ed491e9e5ea21352c27c303ba60 Mon Sep 17 00:00:00 2001 From: dbale-altoros Date: Mon, 22 Jul 2024 17:29:50 -0300 Subject: [PATCH] fix: import-order rule --- docs/rules/naming/imports-order.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rules/naming/imports-order.md b/docs/rules/naming/imports-order.md index 9a224be5..b5322754 100644 --- a/docs/rules/naming/imports-order.md +++ b/docs/rules/naming/imports-order.md @@ -24,8 +24,8 @@ This rule accepts a string option of rule severity. Must be one of "error", "war ``` ### Notes +- Paths starting with "@" like "@openzeppelin/" and urls ("http" and "https") will go first - Order by hierarchy of directories first, e.g. ./../../ comes before ./../, which comes before ./, which comes before ./foo -- Paths starting with "@" like "@openzeppelin/" and urls ("http" and "https") will go at last - Order alphabetically for each path at the same level, e.g. ./contract/Zbar.sol comes before ./interface/Ifoo.sol - Rule does NOT support this kind of import "import * as Alias from "./filename.sol" - When "--fix", rule will re-write this notation "../folder/file.sol" or this one "../file.sol" to "./../folder/file.sol" or this one "./../file.sol"