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

Use Prettier to css and scss files #7451

Closed
1 task done
JulioJu opened this issue Apr 9, 2018 · 5 comments
Closed
1 task done

Use Prettier to css and scss files #7451

JulioJu opened this issue Apr 9, 2018 · 5 comments
Milestone

Comments

@JulioJu
Copy link
Contributor

JulioJu commented Apr 9, 2018

Overview of the issue

Actually some css and scss files have style coding problems. This cause style inconsistence.

I've found some errors on css files and scss files in React and Angular part.

Related issues
Suggest a Fix
  1. As said @deepu105, we could use Prettier to resolve easly this problems. Majors problems are the indentation, and some rules likes space around ":" or space around ">" or carriage-return after ",". It's sometimes inconsistent. With Prettier, we could easy fix that, as @deepu105 says.
  2. Make a PR to correct actual all (s)css.ejs problems (I could do that, it's easy). I work on a PR to fix that. We will have consistent (s)css.ejs if you accept that.
JHipster Version(s)

JHipster 5.0.0-beta.0

  • Checking this box is mandatory (this is just to show you read everything)
@JulioJu
Copy link
Contributor Author

JulioJu commented Apr 9, 2018

@deepu105
In React, why css files have 4 spaces of indentation, and scss and ts(x) files have 2 spaces of indentation?

@jdubois
Copy link
Member

jdubois commented Apr 9, 2018

Yes +1 from me, at least for correcting the issues "manually". Prettier support is less important, as we don't have a lot of CSS/SCSS, and as they are much, much easier to generate than Typescript or Java code.

@deepu105
Copy link
Member

deepu105 commented Apr 10, 2018 via email

@JulioJu
Copy link
Contributor Author

JulioJu commented Apr 10, 2018

@deepu105
For React templates, for its css files, should we use 2 indents space as for scss and ts(x) ? Maybe it's better for code consistency?

@deepu105
Copy link
Member

deepu105 commented Apr 10, 2018 via email

JulioJu pushed a commit to JulioJu/generator-jhipster that referenced this issue Apr 12, 2018
JulioJu pushed a commit to JulioJu/generator-jhipster that referenced this issue Apr 12, 2018
JulioJu pushed a commit to JulioJu/generator-jhipster that referenced this issue Apr 12, 2018
JulioJu pushed a commit to JulioJu/generator-jhipster that referenced this issue Apr 13, 2018
JulioJu pushed a commit to JulioJu/generator-jhipster that referenced this issue Apr 13, 2018
JulioJu pushed a commit to JulioJu/generator-jhipster that referenced this issue Apr 13, 2018
JulioJu pushed a commit to JulioJu/generator-jhipster that referenced this issue Apr 13, 2018
JulioJu pushed a commit to JulioJu/generator-jhipster that referenced this issue Apr 13, 2018
@jdubois jdubois added this to the 5.0.0-beta.1 milestone May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants