prettier-plugin-sort-imports
prettier-plugin-sort-imports copied to clipboard
Comments on the same line move down
Your Environment
- Prettier version: 2.6.0
- node version 16.14.0
- package manager: [email protected]
- IDE: IntelliJ IDEA Build #IU-221.5080.210
Describe the bug
Same line comments move a few lines down.
To Reproduce
import "zone.js"; // Included with Angular CLI.
Expected behavior
import "zone.js"; // Included with Angular CLI.
Screenshots, code sample, etc
import "zone.js";
// Included with Angular CLI.
Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)
.prettierrc.yml
trailingComma: "es5"
semi: true
singleQuote: false
arrowParens: always
bracketSpacing: true
quoteProps: as-needed
htmlWhitespaceSensitivity: ignore
importOrderParserPlugins:
- "typescript"
- "classProperties"
- "decorators-legacy"
importOrder:
- "^@angular(/.*)?$"
- "^primeng(/.*)?$"
# - "^(?!\\.).*$"
# - "^(?!(@app|\\.)).*$"
- <THIRD_PARTY_MODULES>
- "^@app(/.*)?$"
- "^(\\.).*$"
importOrderSeparation: true
importOrderSortSpecifiers: true
Error log
Contribute to @trivago/prettier-plugin-sort-imports
- [ ] I'm willing to fix this bug 🥇