Skip to content

Commit 5ee03cc

Browse files
committed
chore: don't use Prettier on HTML files
1 parent 33961f9 commit 5ee03cc

File tree

4 files changed

+10
-19
lines changed

4 files changed

+10
-19
lines changed

.prettierignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
phpmyfaq/admin/assets/js/editor/
33
phpmyfaq/src/libs/
44

5-
# Ignore all PHP files
5+
# Ignore all PHP and HTML files
66
*.php
7+
*.html
78

89
# Ignore code for build
910
.github
@@ -13,4 +14,4 @@ docker-compose.yml
1314
package.json
1415

1516
# Ignore artifacts
16-
phpmyfaq/assets/dist/
17+
phpmyfaq/assets/dist/

.prettierrc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"tabWidth": 2,
44
"semi": true,
55
"singleQuote": true,
6-
"printWidth": 120
6+
"printWidth": 120,
7+
"htmlWhitespaceSensitivity": "ignore"
78
}
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

phpmyfaq/assets/themes/default/templates/ucp.html

+5-15
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
value="{{ realname }}"
2828
class="form-control"
2929
required
30-
{{
31-
readonly
32-
}}
30+
{{ readonly }}
3331
/>
3432
</div>
3533
</div>
@@ -44,9 +42,7 @@
4442
value="{{ email }}"
4543
class="form-control"
4644
required
47-
{{
48-
readonly
49-
}}
45+
{{ readonly }}
5046
/>
5147
</div>
5248
</div>
@@ -61,9 +57,7 @@
6157
id="faqpassword"
6258
class="form-control"
6359
required
64-
{{
65-
readonly
66-
}}
60+
{{ readonly }}
6761
/>
6862
<span class="input-group-text">
6963
<i class="fa" id="togglePassword"></i>
@@ -81,9 +75,7 @@
8175
id="faqpassword_confirm"
8276
class="form-control"
8377
required
84-
{{
85-
readonly
86-
}}
78+
{{ readonly }}
8779
/>
8880
</div>
8981
</div>
@@ -105,9 +97,7 @@
10597
type="checkbox"
10698
id="twofactor_enabled"
10799
name="twofactor_enabled"
108-
{{
109-
checked_twofactor_enabled
110-
}}
100+
{{ checked_twofactor_enabled }}
111101
/>
112102
<label class="form-check-label" for="twofactor_enabled"> {{ msgTwofactorEnabled }} </label>
113103
</div>

0 commit comments

Comments
 (0)