You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a file with the following imports and format the file with Prettier and the plugin v5 installed:
import{someValue1,// eslint-disable-line no-restricted-imports -- some commentsomeValue2,}from"some-package";
Expected behavior
The import someValue1 and the comment should be on the same line. But starting with v5.0.0 the comment is moved to it's own line, breaking the ESLint comment. It worked fine in v4.3.
Screenshots, code sample, etc
Result:
import{someValue1,// eslint-disable-line no-restricted-imports -- some commentsomeValue2,}from"some-package";
Your Environment
Describe the bug
To Reproduce
Create a file with the following imports and format the file with Prettier and the plugin v5 installed:
Expected behavior
The import
someValue1
and the comment should be on the same line. But starting with v5.0.0 the comment is moved to it's own line, breaking the ESLint comment. It worked fine in v4.3.Screenshots, code sample, etc
Result:
Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)
Reproducible with minimal configuration:
Our actual configuration:
Error log
Contribute to @trivago/prettier-plugin-sort-imports
The text was updated successfully, but these errors were encountered: