-
-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: move prettier-ignore
statement so it works
#729
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run & review this pull request in StackBlitz Codeflow. |
HookyGV
commented
Jan 20, 2024
@@ -114,20 +114,14 @@ export function getDeclaration(ctx: Context, filepath: string, originalImports?: | |||
directive: stringifyDeclarationImports({ ...originalImports?.directive, ...imports.directive }), | |||
} | |||
|
|||
const head = ctx.options.version === 2.7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that both paths here resolve to the same string, so this check is no longer required.
HookyGV
changed the title
fix: Move prettier-ignore statement so it works
Move Jan 20, 2024
prettier-ignore
statement so it works
antfu
changed the title
Move
fix: move May 1, 2024
prettier-ignore
statement so it worksprettier-ignore
statement so it works
antfu
approved these changes
May 1, 2024
hiifong
referenced
this pull request
in hiifong/Mojito-UI
May 1, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [unplugin-vue-components](https://togithub.com/unplugin/unplugin-vue-components) | [`^0.26.0` -> `^0.27.0`](https://renovatebot.com/diffs/npm/unplugin-vue-components/0.26.0/0.27.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/unplugin-vue-components/0.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/unplugin-vue-components/0.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/unplugin-vue-components/0.26.0/0.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/unplugin-vue-components/0.26.0/0.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>unplugin/unplugin-vue-components (unplugin-vue-components)</summary> ### [`v0.27.0`](https://togithub.com/unplugin/unplugin-vue-components/releases/tag/v0.27.0) [Compare Source](https://togithub.com/unplugin/unplugin-vue-components/compare/v0.26.0...v0.27.0) ##### 🚀 Features - **ant-design-vue**: - Support `css-in-js` import style - by [@​JohnsonHuang4396](https://togithub.com/JohnsonHuang4396), [@​antfu](https://togithub.com/antfu), **黄启浩** and **JohnsonHuang** in [https://github.com/unplugin/unplugin-vue-components/issues/703](https://togithub.com/unplugin/unplugin-vue-components/issues/703) [<samp>(5d533)</samp>](https://togithub.com/unplugin/unplugin-vue-components/commit/5d533b1) - **idux**: - Update idux resolver to support v2 version - by [@​sallerli1](https://togithub.com/sallerli1), **李志超44657** and [@​antfu](https://togithub.com/antfu) in [https://github.com/unplugin/unplugin-vue-components/issues/722](https://togithub.com/unplugin/unplugin-vue-components/issues/722) [<samp>(c1458)</samp>](https://togithub.com/unplugin/unplugin-vue-components/commit/c145885) - **prime-vue**: - Update missing components - by [@​evgeniikostiukov](https://togithub.com/evgeniikostiukov) in [https://github.com/unplugin/unplugin-vue-components/issues/735](https://togithub.com/unplugin/unplugin-vue-components/issues/735) [<samp>(b9140)</samp>](https://togithub.com/unplugin/unplugin-vue-components/commit/b9140de) - Add missing components - by [@​tugcekucukoglu](https://togithub.com/tugcekucukoglu) and [@​antfu](https://togithub.com/antfu) in [https://github.com/unplugin/unplugin-vue-components/issues/731](https://togithub.com/unplugin/unplugin-vue-components/issues/731) [<samp>(858ce)</samp>](https://togithub.com/unplugin/unplugin-vue-components/commit/858ce68) - **varlet-ui**: - Support `styleExtname` option - by [@​RSS1102](https://togithub.com/RSS1102) in [https://github.com/unplugin/unplugin-vue-components/issues/740](https://togithub.com/unplugin/unplugin-vue-components/issues/740) [<samp>(c0e66)</samp>](https://togithub.com/unplugin/unplugin-vue-components/commit/c0e66f3) ##### 🐞 Bug Fixes - Move `prettier-ignore` statement so it works - by [@​HookyGV](https://togithub.com/HookyGV) in [https://github.com/unplugin/unplugin-vue-components/issues/729](https://togithub.com/unplugin/unplugin-vue-components/issues/729) [<samp>(e0d37)</samp>](https://togithub.com/unplugin/unplugin-vue-components/commit/e0d37b0) - **utils**: Collapse prefixes in PascalCase name - by [@​waynzh](https://togithub.com/waynzh) in [https://github.com/unplugin/unplugin-vue-components/issues/744](https://togithub.com/unplugin/unplugin-vue-components/issues/744) [<samp>(02712)</samp>](https://togithub.com/unplugin/unplugin-vue-components/commit/027128c) ##### [View changes on GitHub](https://togithub.com/unplugin/unplugin-vue-components/compare/v0.26.0...v0.27.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **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. --- - [ ] <!-- rebase-check -->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/hiifong/gitno-ui). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMzEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjMzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Solve the prettier formatting issue, but leave the comment in the head section.
prettier-ignore
will ignore following block (the module declaration) in this case.See https://prettier.io/docs/en/ignore.html#javascript
Linked Issues
Same issue, different solution: PR #689
Additional context