Skip to content

Commit

Permalink
[Docs] no-duplicates: fix example schema
Browse files Browse the repository at this point in the history
  • Loading branch information
simmo authored and ljharb committed Jan 18, 2023
1 parent defcf08 commit 766af5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/rules/no-duplicates.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ Config:

<!--tabs-->

❌ 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'
Expand Down

0 comments on commit 766af5f

Please sign in to comment.