Skip to content

Commit

Permalink
[Docs] order: Document options required to match ordering example
Browse files Browse the repository at this point in the history
  • Loading branch information
silviogutierrez authored and ljharb committed Feb 18, 2021
1 parent dfb0f6f commit cf3b7e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -34,6 +34,7 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
- [Generic Import Callback] Make callback for all imports once in rules ([#1237], thanks [@ljqx])
- [Docs] [`no-named-as-default`]: add semicolon ([#1897], thanks [@bicstone])
- [Docs] `no-extraneous-dependencies`: correct peerDependencies option default to `true` ([#1993], thanks [@dwardu])
- [Docs] `order`: Document options required to match ordering example ([#1992], thanks [@silviogutierrez])

## [2.22.1] - 2020-09-27
### Fixed
Expand Down Expand Up @@ -1355,3 +1356,4 @@ for info on changes for earlier releases.
[@s-h-a-d-o-w]: https://github.com/s-h-a-d-o-w
[@grit96]: https://github.com/grit96
[@lilling]: https://github.com/lilling
[@silviogutierrez]: https://github.com/silviogutierrez
3 changes: 2 additions & 1 deletion docs/rules/order.md
Expand Up @@ -2,7 +2,8 @@

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.
The order is as shown in the following example:

With the [`groups`](#groups-array) option set to `["builtin", "external", "internal", "parent", "sibling", "index", "object"]` the order is as shown in the following example:

```js
// 1. node "builtin" modules
Expand Down

0 comments on commit cf3b7e2

Please sign in to comment.