Skip to content
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

Conflict with other prettier plugins #42

Open
baranovskyi opened this issue Nov 15, 2021 · 1 comment
Open

Conflict with other prettier plugins #42

baranovskyi opened this issue Nov 15, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@baranovskyi
Copy link

Prettier-plugin-tailwind conflicts with prettier-plugin-organize-imports plugin in Angular project
Prettier plugin does not:

  • remove unused imports
  • make right order of imports

To Reproduce
Steps to reproduce the behavior:

  1. Create angular app with angular cli
  2. Install prettier, prettier-plugin-tailwind, prettier-plugin-organize-imports
  3. Create a component with different imports (angular-core, rxjs, etc)
  4. Do not use all of components
  5. Save a file
  6. Pay attention to the Imports section

Expected behavior
Unused imports should be removed
Imports should be formated

Versions:

  • prettier-plugin-tailwind version: 2.2.12
  • prettier: 2.4.1
  • NPM Yarn version: 6.14.15
  • Angular: 12.6.1

prettier config
{ "trailingComma": "all", "tabWidth": 4, "semi": true, "singleQuote": true, "bracketSpacing": true, "printWidth": 100, "attributeGroups": [ "$CLASS", "$ID", "$ANGULAR_ELEMENT_REF", "$ANGULAR_STRUCTURAL_DIRECTIVE", "$ANGULAR_ANIMATION", "$ANGULAR_ANIMATION_INPUT", "$ANGULAR_TWO_WAY_BINDING", "$ANGULAR_INPUT", "$ANGULAR_OUTPUT", "$CODE_GUIDE" ], "overrides": [ { "files": "*.component.html", "options": { "parser": "angular" } }, { "files": "*.html", "options": { "parser": "html" } } ] }

@baranovskyi baranovskyi added the bug Something isn't working label Nov 15, 2021
@denis-sokolov
Copy link

Duplicate of #23.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants