We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Your Environment
Describe the bug
When I add a // prettier-ignore comment above an export, then it still underlines red and formats it, just in a different format
// prettier-ignore
export
To Reproduce
I try to export functions like so:
// prettier-ignore export { getCurrentTimestampSeconds, getCurrentTimestampMilliseconds, timestampToDate, timestampToDateUTC, dateToTimestamp, msToUnits, getTimestampDiff, unitsToString };
Expected behavior
Because I have a // prettier-ignore comment, there should be no underline
Screenshots, code sample, etc
Red Underline
Error Message
Incorrect result after selecting fix the first problem
Incorrectly formatted after alt+shift+F
// prettier-ignore export { dateToTimestamp,getCurrentTimestampMilliseconds,getCurrentTimestampSeconds,getTimestampDiff,msToUnits,timestampToDate, timestampToDateUTC,unitsToString };
Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)
{ "bracketSameLine": true, "printWidth": 100, "quoteProps": "consistent", "singleQuote": true, "trailingComma": "none", "useTabs": true, "endOfLine": "crlf", "plugins": [ "prettier-plugin-tailwindcss", "prettier-plugin-organize-imports", "prettier-plugin-svelte" ], "organizeImportsSkipDestructiveCodeActions": true }
Error log
N/A
Contribute to @trivago/prettier-plugin-sort-imports
The text was updated successfully, but these errors were encountered:
Any updates on this?
Sorry, something went wrong.
Are you sure you are using this plugin, based on your config you are using prettier-plugin-organize-imports package which is different
prettier-plugin-organize-imports
No branches or pull requests
Your Environment
"prettier": "^3.1.1",
"prettier-plugin-organize-imports": "^3.2.4",
"prettier-plugin-svelte": "^3.1.2",
"prettier-plugin-tailwindcss": "^0.5.10",
Describe the bug
When I add a
// prettier-ignore
comment above anexport
, then it still underlines red and formats it, just in a different formatTo Reproduce
I try to export functions like so:
Expected behavior
Because I have a
// prettier-ignore
comment, there should be no underlineScreenshots, code sample, etc
Red Underline
Error Message
Incorrect result after selecting fix the first problem
Incorrectly formatted after alt+shift+F
prettier.export.ignore.bug.mp4
Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)
Error log
N/A
Contribute to @trivago/prettier-plugin-sort-imports
The text was updated successfully, but these errors were encountered: