Skip to content

Commit

Permalink
fix: import-order rule
Browse files Browse the repository at this point in the history
  • Loading branch information
dbale-altoros committed Jul 22, 2024
1 parent 0b52aaa commit b91d312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/naming/imports-order.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b91d312

Please sign in to comment.