Skip to content

Commit

Permalink
rebase with upstream, fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
dannysindra authored and ljharb committed Feb 4, 2019
1 parent b204cb1 commit 3db6bd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/order.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# import/order: Enforce a convention in module import order

Enforce a convention in the order of `require()` / `import` statements.
+(fixable) The `--fix` option on the [command line] automatically fixes problems reported by this rule. When the `alphabetize` option is used, multiple fix passes may be required.
+(fixable) The `--fix` option on the [command line] automatically fixes problems reported by this rule.
The order is as shown in the following example:

```js
Expand Down
4 changes: 4 additions & 0 deletions tests/src/rules/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -1390,6 +1390,10 @@ ruleTester.run('order', rule, {
groups: ['external', 'index'],
alphabetize: {order: 'asc', ignoreCase: true}
}],
errors: [{
ruleID: 'order',
message: '`bar` import should occur before import of `Baz`',
}]
}),
// Option alphabetize: {order: 'desc', ignoreCase: false}
test({
Expand Down

0 comments on commit 3db6bd7

Please sign in to comment.