You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Change required lines amount to minimum 1 (instead of exactly 1)
to be at least one, not exactly one
Before it was 1. To prevent multiple lines between imports, core
`no-multiple-empty-lines` rule can be used.
* Fix `order`s `newline-between` for multiline imports
* Ignore unassigned imports while detecting empty lines
Previously it was calculated based on `loc` property of nodes. Counting
REAL empty lines is less error-prone.
* Fix `require` in object properties
Copy file name to clipboardExpand all lines: docs/rules/order.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ You can set the options like this:
98
98
Enforces or forbids new lines between import groups:
99
99
100
100
- If omitted, assertion messages will be neither enforced nor forbidden.
101
-
- If set to `always`, a new line between each group will be enforced, and new lines inside a group will be forbidden.
101
+
- If set to `always`, at least one new line between each group will be enforced, and new lines inside a group will be forbidden. To prevent multiple lines between imports, core `no-multiple-empty-lines` rule can be used.
102
102
- If set to `never`, no new lines are allowed in the entire import section.
103
103
104
104
With the default group setting, the following will be invalid:
0 commit comments