Skip to content

Commit 766af5f

Browse files
simmoljharb
authored andcommitted
[Docs] no-duplicates: fix example schema
1 parent defcf08 commit 766af5f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
66

77
## [Unreleased]
88

9+
### Changed
10+
- [Docs] [`no-duplicates`]: fix example schema ([#2684], thanks [@simmo])
11+
912
## [2.27.5] - 2023-01-16
1013

1114
### Fixed
@@ -1381,6 +1384,7 @@ for info on changes for earlier releases.
13811384
[#211]: https://github.com/import-js/eslint-plugin-import/pull/211
13821385
[#164]: https://github.com/import-js/eslint-plugin-import/pull/164
13831386
[#157]: https://github.com/import-js/eslint-plugin-import/pull/157
1387+
[#2684]: https://github.com/import-js/eslint-plugin-import/issues/2684
13841388
[#2674]: https://github.com/import-js/eslint-plugin-import/issues/2674
13851389
[#2668]: https://github.com/import-js/eslint-plugin-import/issues/2668
13861390
[#2666]: https://github.com/import-js/eslint-plugin-import/issues/2666
@@ -1800,6 +1804,7 @@ for info on changes for earlier releases.
18001804
[@sheepsteak]: https://github.com/sheepsteak
18011805
[@silviogutierrez]: https://github.com/silviogutierrez
18021806
[@SimenB]: https://github.com/SimenB
1807+
[@simmo]: https://github.com/simmo
18031808
[@sindresorhus]: https://github.com/sindresorhus
18041809
[@singles]: https://github.com/singles
18051810
[@skozin]: https://github.com/skozin

docs/rules/no-duplicates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ Config:
7979

8080
<!--tabs-->
8181

82-
❌ Invalid `["error", "prefer-inline"]`
82+
❌ Invalid `["error", {"prefer-inline": true}]`
8383

8484
```js
8585
import { AValue, type AType } from './mama-mia'
8686
import type { BType } from './mama-mia'
8787
```
8888

89-
✅ Valid with `["error", "prefer-inline"]`
89+
✅ Valid with `["error", {"prefer-inline": true}]`
9090

9191
```js
9292
import { AValue, type AType, type BType } from './mama-mia'

0 commit comments

Comments
 (0)