-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add prettier #1687
base: master
Are you sure you want to change the base?
Add prettier #1687
Conversation
Hält sich das denn an in der .editorconfig definierten Codestyle? |
@janschoenherr From my perspective you can add the includes and tests folder also.
|
We are using it for JavaScript, JSON, etc. however we did have problems in the past with php template files (html and php in one file). I can't recall specifics though. So we might want to try those too. @hansmorb We would probably have to adjust the Regarding the git-blame ignore list. I didn't know about that :-) Seems to make sense! As you said, I would separate the actual prettier run from this PR though. I updated the PR to include |
2a3aa66
to
dbf8002
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1687 +/- ##
============================================
- Coverage 54.09% 54.08% -0.01%
Complexity 2628 2628
============================================
Files 98 98
Lines 11655 11655
============================================
- Hits 6305 6304 -1
- Misses 5350 5351 +1 ☔ View full report in Codecov by Sentry. |
Du hast doch auch PHPStorm, entspricht dass, was Prettier aus dem Code machen will dem in der .editorconfig definierten Codestyle? Wenn ja passt das. Wenn nein müssen wir nochmal überlegen, da wir uns eigentlich geeinigt hatten uns an diesen Codestyle zu halten. |
dbf8002
to
4df470f
Compare
@janschoenherr sorry to keep you wating. we updated the repo php code with the already configured phpcbf (formatter). We still would be grateful if you update this PR to only include the js/scss files and don't include any of the php sources anymore. The php code base got formatted for directories: src, includes and templates and tests. JS and SCSS code resides in assets directory and is bit scattered. From my understanding, the gruntfile uses the following js sources:
And following sass sources:
I am unsure if we will kee the assets/public/sass/themes folder (see #1758), but maybe include it anyway. But the above stated source directories should be enough for an initial prettier config, that formats js and sass sources of the commonsbooking repo. @hansmorb what do you think? |
@hansmorb @janschoenherr I think we can include also the |
This can be run with
npx prettier . --check
ornpx prettier . --write
It will currently only check the
./src
folder.