-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
Prettier xml #380
Prettier xml #380
Conversation
Codecov Report
@@ Coverage Diff @@
## main #380 +/- ##
===========================================
Coverage 100.00% 100.00%
Complexity 561 561
===========================================
Files 93 93
Lines 1781 1781
Branches 37 37
===========================================
Hits 1781 1781 Continue to review full report at Codecov.
|
That also surprised me that this indentation feature doesn't work out of
the box.
I must have missed something. I'll give it another try in the week.
Le mar. 21 déc. 2021 à 22:15, Pascal Grimaud ***@***.***> a
écrit :
… I don't understand how this plugin should work.
I changed the indentation in pom.xml :
[image: image]
<https://user-images.githubusercontent.com/9156882/146998539-4df3bdae-03bc-40fe-afde-d7c24ac4ef22.png>
But everything is well formated:
[image: image]
<https://user-images.githubusercontent.com/9156882/146998616-07995b08-c017-4ebc-b663-138543887d12.png>
—
Reply to this email directly, view it on GitHub
<#380 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKD3UIP7FBRNKWK35C72CYLUSDU6VANCNFSM5KQWOA3Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@MSaguer : I found the issue. We need to add this property in diff --git a/.prettierrc b/.prettierrc
index 34b8d15..7c210c3 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -11,6 +11,9 @@ arrowParens: avoid
# jsx and tsx rules:
bracketSameLine: false
+# xml
+xmlWhitespaceSensitivity: ignore
+
# java rules:
overrides:
- files: "*.java" |
package.json
Outdated
"husky": "7.0.4", | ||
"lint-staged": "12.1.3", | ||
"prettier": "2.5.1", | ||
"prettier": "^2.5.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"prettier": "^2.5.1", | |
"prettier": "2.5.1", |
To close #103
Prettier-xml added and called automatically during commit with default values