Skip to content

Commit 3db6bd7

Browse files
dannysindraljharb
authored andcommitted
rebase with upstream, fix error
1 parent b204cb1 commit 3db6bd7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Diff for: docs/rules/order.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# import/order: Enforce a convention in module import order
22

33
Enforce a convention in the order of `require()` / `import` statements.
4-
+(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.
4+
+(fixable) The `--fix` option on the [command line] automatically fixes problems reported by this rule.
55
The order is as shown in the following example:
66

77
```js

Diff for: tests/src/rules/order.js

+4
Original file line numberDiff line numberDiff line change
@@ -1390,6 +1390,10 @@ ruleTester.run('order', rule, {
13901390
groups: ['external', 'index'],
13911391
alphabetize: {order: 'asc', ignoreCase: true}
13921392
}],
1393+
errors: [{
1394+
ruleID: 'order',
1395+
message: '`bar` import should occur before import of `Baz`',
1396+
}]
13931397
}),
13941398
// Option alphabetize: {order: 'desc', ignoreCase: false}
13951399
test({

0 commit comments

Comments
 (0)