From 4bfe644ec697d0a4fe0227e5ff09b869650eb35f Mon Sep 17 00:00:00 2001 From: Bert Verhelst Date: Thu, 13 Oct 2022 10:36:01 +0200 Subject: [PATCH] [readme] make json for setting groups multiline --- CHANGELOG.md | 3 +++ docs/rules/order.md | 16 +++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b13d7170c..06d0ebf2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 @@ -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 diff --git a/docs/rules/order.md b/docs/rules/order.md index c525dfbba..dbda8b2d7 100644 --- a/docs/rules/order.md +++ b/docs/rules/order.md @@ -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]`: