Skip to content

Commit 4bfe644

Browse files
bertyhellljharb
authored andcommitted
[readme] make json for setting groups multiline
1 parent 753505d commit 4bfe644

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
4141
- [Tests] [`no-cycle`]: add passing test cases ([#2438], thanks [@georeith])
4242
- [Refactor] [`no-extraneous-dependencies`] improve performance using cache ([#2374], thanks [@meowtec])
4343
- [meta] `CONTRIBUTING.md`: mention inactive PRs ([#2546], thanks [@stropho])
44+
- [readme] make json for setting groups multiline ([#2570], thanks [@bertyhell])
4445

4546
## [2.26.0] - 2022-04-05
4647

@@ -1014,6 +1015,7 @@ for info on changes for earlier releases.
10141015

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

1018+
[#2570]: https://github.com/import-js/eslint-plugin-import/pull/2570
10171019
[#2546]: https://github.com/import-js/eslint-plugin-import/pull/2546
10181020
[#2541]: https://github.com/import-js/eslint-plugin-import/pull/2541
10191021
[#2531]: https://github.com/import-js/eslint-plugin-import/pull/2531
@@ -1555,6 +1557,7 @@ for info on changes for earlier releases.
15551557
[@benmosher]: https://github.com/benmosher
15561558
[@benmunro]: https://github.com/benmunro
15571559
[@BenoitZugmeyer]: https://github.com/BenoitZugmeyer
1560+
[@bertyhell]: https://github.com/bertyhell
15581561
[@bicstone]: https://github.com/bicstone
15591562
[@Blasz]: https://github.com/Blasz
15601563
[@bmish]: https://github.com/bmish

docs/rules/order.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,21 @@ The default value is `["builtin", "external", "parent", "sibling", "index"]`.
9999
You can set the options like this:
100100

101101
```ts
102-
"import/order": ["error", {"groups": ["index", "sibling", "parent", "internal", "external", "builtin", "object", "type"]}]
102+
"import/order": [
103+
"error",
104+
{
105+
"groups": [
106+
"index",
107+
"sibling",
108+
"parent",
109+
"internal",
110+
"external",
111+
"builtin",
112+
"object",
113+
"type"
114+
]
115+
}
116+
]
103117
```
104118

105119
### `pathGroups: [array of objects]`:

0 commit comments

Comments
 (0)