Skip to content

Commit

Permalink
[readme] make json for setting groups multiline
Browse files Browse the repository at this point in the history
  • Loading branch information
bertyhell authored and ljharb committed Oct 13, 2022
1 parent 753505d commit 4bfe644
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -41,6 +41,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
- [Tests] [`no-cycle`]: add passing test cases ([#2438], thanks [@georeith])
- [Refactor] [`no-extraneous-dependencies`] improve performance using cache ([#2374], thanks [@meowtec])
- [meta] `CONTRIBUTING.md`: mention inactive PRs ([#2546], thanks [@stropho])
- [readme] make json for setting groups multiline ([#2570], thanks [@bertyhell])

## [2.26.0] - 2022-04-05

Expand Down Expand Up @@ -1014,6 +1015,7 @@ for info on changes for earlier releases.

[`memo-parser`]: ./memo-parser/README.md

[#2570]: https://github.com/import-js/eslint-plugin-import/pull/2570
[#2546]: https://github.com/import-js/eslint-plugin-import/pull/2546
[#2541]: https://github.com/import-js/eslint-plugin-import/pull/2541
[#2531]: https://github.com/import-js/eslint-plugin-import/pull/2531
Expand Down Expand Up @@ -1555,6 +1557,7 @@ for info on changes for earlier releases.
[@benmosher]: https://github.com/benmosher
[@benmunro]: https://github.com/benmunro
[@BenoitZugmeyer]: https://github.com/BenoitZugmeyer
[@bertyhell]: https://github.com/bertyhell
[@bicstone]: https://github.com/bicstone
[@Blasz]: https://github.com/Blasz
[@bmish]: https://github.com/bmish
Expand Down
16 changes: 15 additions & 1 deletion docs/rules/order.md
Expand Up @@ -99,7 +99,21 @@ The default value is `["builtin", "external", "parent", "sibling", "index"]`.
You can set the options like this:

```ts
"import/order": ["error", {"groups": ["index", "sibling", "parent", "internal", "external", "builtin", "object", "type"]}]
"import/order": [
"error",
{
"groups": [
"index",
"sibling",
"parent",
"internal",
"external",
"builtin",
"object",
"type"
]
}
]
```

### `pathGroups: [array of objects]`:
Expand Down

0 comments on commit 4bfe644

Please sign in to comment.