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
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
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.