From 766af5ff6c2e97cbe2a2a211729f7c129da3005d Mon Sep 17 00:00:00 2001 From: Mike Simmonds Date: Wed, 18 Jan 2023 22:29:38 +0000 Subject: [PATCH] [Docs] `no-duplicates`: fix example schema --- CHANGELOG.md | 5 +++++ docs/rules/no-duplicates.md | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d63f0555..894aa97b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange ## [Unreleased] +### Changed +- [Docs] [`no-duplicates`]: fix example schema ([#2684], thanks [@simmo]) + ## [2.27.5] - 2023-01-16 ### Fixed @@ -1381,6 +1384,7 @@ for info on changes for earlier releases. [#211]: https://github.com/import-js/eslint-plugin-import/pull/211 [#164]: https://github.com/import-js/eslint-plugin-import/pull/164 [#157]: https://github.com/import-js/eslint-plugin-import/pull/157 +[#2684]: https://github.com/import-js/eslint-plugin-import/issues/2684 [#2674]: https://github.com/import-js/eslint-plugin-import/issues/2674 [#2668]: https://github.com/import-js/eslint-plugin-import/issues/2668 [#2666]: https://github.com/import-js/eslint-plugin-import/issues/2666 @@ -1800,6 +1804,7 @@ for info on changes for earlier releases. [@sheepsteak]: https://github.com/sheepsteak [@silviogutierrez]: https://github.com/silviogutierrez [@SimenB]: https://github.com/SimenB +[@simmo]: https://github.com/simmo [@sindresorhus]: https://github.com/sindresorhus [@singles]: https://github.com/singles [@skozin]: https://github.com/skozin diff --git a/docs/rules/no-duplicates.md b/docs/rules/no-duplicates.md index 553fbbcc3..5f3cfbd42 100644 --- a/docs/rules/no-duplicates.md +++ b/docs/rules/no-duplicates.md @@ -79,14 +79,14 @@ Config: -❌ Invalid `["error", "prefer-inline"]` +❌ Invalid `["error", {"prefer-inline": true}]` ```js import { AValue, type AType } from './mama-mia' import type { BType } from './mama-mia' ``` -✅ Valid with `["error", "prefer-inline"]` +✅ Valid with `["error", {"prefer-inline": true}]` ```js import { AValue, type AType, type BType } from './mama-mia'