Skip to content

Commit

Permalink
chore(deps): update dependency @ianvs/prettier-plugin-sort-imports to…
Browse files Browse the repository at this point in the history
… v4.3.0 (#725)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@ianvs/prettier-plugin-sort-imports](https://togithub.com/ianvs/prettier-plugin-sort-imports) | [`4.2.1` -> `4.3.0`](https://renovatebot.com/diffs/npm/@ianvs%2fprettier-plugin-sort-imports/4.2.1/4.3.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@ianvs%2fprettier-plugin-sort-imports/4.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@ianvs%2fprettier-plugin-sort-imports/4.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@ianvs%2fprettier-plugin-sort-imports/4.2.1/4.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@ianvs%2fprettier-plugin-sort-imports/4.2.1/4.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>ianvs/prettier-plugin-sort-imports (@&#8203;ianvs/prettier-plugin-sort-imports)</summary>

### [`v4.3.0`](https://togithub.com/IanVS/prettier-plugin-sort-imports/releases/tag/v4.3.0)

[Compare Source](https://togithub.com/ianvs/prettier-plugin-sort-imports/compare/v4.2.1...v4.3.0)

#### What's Changed

##### Features

-   Add support for import attributes by [@&#8203;IanVS](https://togithub.com/IanVS) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/174](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/174)

This release adds support for experimental import attributes / assertions.  There have been a number of styles proposed by TC-39 over the years, but the latest is to use `import x from 'x' with { type: 'json' };`, which is called an "import attribute".  There is also an older "import assertion" form, which uses `assert` instead of `with`.

**Note:** You may need to add `"importAttributes"` to your `"importOrderParserPlugins"` option in order to support this.  And if you are using the older assertion style, you'll need to add it as `'[\"importAttributes\", {\"deprecatedAssertSyntax\": true}]'`.

This plugin will also convert the older assertion style to import attributes.

##### Bugfixes

-   Fix vue 2.7 support by [@&#8203;IanVS](https://togithub.com/IanVS) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/173](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/173)

##### TypeScript

-   Augment Prettier `Options` types with internal `PluginConfig` by [@&#8203;jeremy-code](https://togithub.com/jeremy-code) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/172](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/172)

You can now type your prettier config as simply `/** @&#8203;type {import("prettier").Config} */`, and you'll also get the types for the options this plugin adds, automatically.

##### Docs

-   Update README to show more options for disabling and overrides by [@&#8203;ADTC](https://togithub.com/ADTC) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/165](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/165)

#### New Contributors

-   [@&#8203;ADTC](https://togithub.com/ADTC) made their first contribution in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/165](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/165)
-   [@&#8203;jeremy-code](https://togithub.com/jeremy-code) made their first contribution in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/172](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/172)

**Full Changelog**: IanVS/prettier-plugin-sort-imports@v4.2.1...v4.3.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/technifit/tasker).
  • Loading branch information
renovate[bot] authored Jun 26, 2024
1 parent 3d6984a commit c78eb63
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"typecheck": "turbo typecheck --continue"
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "4.2.1",
"@ianvs/prettier-plugin-sort-imports": "4.3.0",
"@technifit/tsconfig": "workspace:*",
"@typescript-eslint/eslint-plugin": "7.14.1",
"prettier": "3.3.2",
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c78eb63

Please sign in to comment.