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 e871a9a commit d538c54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Expand Up @@ -29,6 +29,7 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
### Changed
- [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] `order`: Document options required to match ordering example ([#1992], thanks [@silviogutierrez])

## [2.22.1] - 2020-09-27
### Fixed
Expand Down Expand Up @@ -1340,4 +1341,5 @@ for info on changes for earlier releases.
[@panrafal]: https://github.com/panrafal
[@ttmarek]: https://github.com/ttmarek
[@christianvuerings]: https://github.com/christianvuerings
[@devongovett]: https://github.com/devongovett
[@devongovett]: https://github.com/devongovett
[@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 d538c54

Please sign in to comment.