Skip to content

Commit a333837

Browse files
authored
Update prettier to 3.0.3 and fix warnings (#1778)
1 parent 79521be commit a333837

File tree

6 files changed

+96
-80
lines changed

6 files changed

+96
-80
lines changed

.github/workflows/pull-request.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,6 @@ jobs:
6969
cache: "npm"
7070
-
7171
name: Run prettier check
72-
run: npx prettier --check .
72+
run: |
73+
npx prettier -v
74+
npx prettier --check .

package-lock.json

Lines changed: 75 additions & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
},
4848
"devDependencies": {
4949
"@playwright/test": "^1.29",
50-
"@prettier/plugin-php": "^0.19.1",
50+
"@prettier/plugin-php": "^0.20.1",
5151
"@types/angular": "1.8.1",
5252
"@types/angular-mocks": "^1.7.0",
5353
"@types/angular-route": "^1.7.1",
@@ -80,7 +80,7 @@
8080
"ng-annotate-loader": "^0.7.0",
8181
"ngtemplate-loader": "^2.1.0",
8282
"npm-run-all": "^4.1.5",
83-
"prettier": "2.7.1",
83+
"prettier": "3.0.3",
8484
"sass": "^1.39.0",
8585
"sass-loader": "^8.0.2",
8686
"style-loader": "^1.2.1",

src/angular-app/languageforge/lexicon/editor/_editor.scss

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,9 @@ dc-entry .card {
468468
}
469469
.right-panel-list {
470470
width: 0;
471-
transition: width 0.5s ease-in-out, margin-left 0.5s ease-in-out;
471+
transition:
472+
width 0.5s ease-in-out,
473+
margin-left 0.5s ease-in-out;
472474
margin-left: 0;
473475
position: relative;
474476
.right-panel {
@@ -479,7 +481,10 @@ dc-entry .card {
479481
top: 0;
480482
width: 100%;
481483
&.panel-closing {
482-
transition: width 0.5s ease-in-out 0.5s, margin-left 0.5s ease-in-out 0.5s, opacity 0.5s;
484+
transition:
485+
width 0.5s ease-in-out 0.5s,
486+
margin-left 0.5s ease-in-out 0.5s,
487+
opacity 0.5s;
483488
overflow: visible !important;
484489
height: auto !important;
485490
}
@@ -507,7 +512,9 @@ dc-entry .card {
507512
}
508513
&.panel-closing {
509514
.right-panel-list {
510-
transition: width 0.5s ease-in-out 0.5s, margin-left 0.5s ease-in-out 0.5s;
515+
transition:
516+
width 0.5s ease-in-out 0.5s,
517+
margin-left 0.5s ease-in-out 0.5s;
511518
overflow: visible !important;
512519
height: auto !important;
513520
}

src/angular-app/languageforge/lexicon/editor/field/_dc-multiparagraph.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ form.dc-multiparagraph textarea {
3434
form.dc-multiparagraph textarea:focus {
3535
border-color: rgba(82, 168, 236, 0.8);
3636
outline: 0;
37-
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
37+
box-shadow:
38+
inset 0 1px 1px rgba(0, 0, 0, 0.075),
39+
0 0 8px rgba(82, 168, 236, 0.6);
3840
}
3941

4042
/* input prepend sized to input and textarea */

src/angular-app/languageforge/lexicon/editor/field/_dc-multitext.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ form.dc-multitext .uneditable-input:hover {
2828
form.dc-multitext textarea:focus {
2929
border-color: rgba(82, 168, 236, 0.8);
3030
outline: 0;
31-
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
31+
box-shadow:
32+
inset 0 1px 1px rgba(0, 0, 0, 0.075),
33+
0 0 8px rgba(82, 168, 236, 0.6);
3234
}
3335

3436
form.dc-multitext .wsid {

0 commit comments

Comments
 (0)