Skip to content

Commit 241a27e

Browse files
committed
Update prettier to version ^2.1.1
1 parent fa2edd6 commit 241a27e

20 files changed

+42
-43
lines changed

Apps/CesiumViewer/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
1515
<link rel="stylesheet" href="CesiumViewer.css" media="screen" />
1616
</head>
17-
<body style="background: #000;">
17+
<body style="background: #000">
1818
<div id="cesiumContainer" class="fullWindow"></div>
1919
<div id="loadingIndicator" class="loadingIndicator"></div>
2020
<script src="CesiumViewer.js" type="module"></script>

Apps/Sandcastle/gallery/Globe Materials.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
<div>
8888
Spacing
8989
<input
90-
style="width: 136px;"
90+
style="width: 136px"
9191
type="range"
9292
min="1.0"
9393
max="500.0"
@@ -99,7 +99,7 @@
9999
<div>
100100
Line Width
101101
<input
102-
style="width: 125px;"
102+
style="width: 125px"
103103
type="range"
104104
min="1.0"
105105
max="10.0"

Apps/Sandcastle/gallery/HTML Overlays.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<div id="toolbar"></div>
3434
<img
3535
id="htmlOverlay"
36-
style="position: absolute;"
36+
style="position: absolute"
3737
src="../images/Cesium_Logo_overlay.png"
3838
/>
3939
<script id="cesium_sandcastle_script">

Apps/Sandcastle/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
<a href="http://cesium.com/" target="_blank"
7676
><img
7777
src="./images/Cesium_Logo_Color_Overlay.png"
78-
style="width: 118px;"
78+
style="width: 118px"
7979
/></a>
8080
</div>
8181
<div
@@ -119,7 +119,7 @@
119119
data-dojo-type="dijit.form.Textarea"
120120
id="description"
121121
data-dojo-props="trim:true"
122-
style="width: 335px;"
122+
style="width: 335px"
123123
></textarea>
124124
</div>
125125
<br />
@@ -129,7 +129,7 @@
129129
data-dojo-type="dijit.form.Textarea"
130130
id="label"
131131
data-dojo-props="trim:true"
132-
style="width: 335px;"
132+
style="width: 335px"
133133
></textarea>
134134
</div>
135135
</div>
@@ -204,7 +204,7 @@
204204
data-dojo-type="dijit.form.Textarea"
205205
id="gistId"
206206
data-dojo-props="trim:true"
207-
style="width: 335px;"
207+
style="width: 335px"
208208
></textarea>
209209
</div>
210210
<div id="buttonImport" data-dojo-type="dijit.form.Button">

Apps/TimelineDemo/index.html

+2-4
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ <h2>Usage</h2>
194194
class="themeSelector"
195195
>
196196
<span>Theme: Lighter</span>
197-
<div data-dojo-type="dijit.Menu" id="themeMenu" style="display: none;">
197+
<div data-dojo-type="dijit.Menu" id="themeMenu" style="display: none">
198198
<div id="themeLighter" data-dojo-type="dijit.MenuItem">Lighter</div>
199199
<div id="themeDarker" data-dojo-type="dijit.MenuItem">Darker</div>
200200
</div>
@@ -239,9 +239,7 @@ <h1>Timeline Demo</h1>
239239
</div>
240240
<div class="info">
241241
<p>Visible Timespan: <span id="formatted">(none)</span></p>
242-
<p id="endBeforeStart">
243-
ERROR: Start time must come before end time.
244-
</p>
242+
<p id="endBeforeStart">ERROR: Start time must come before end time.</p>
245243
</div>
246244
</div>
247245

Documentation/Contributors/CodingGuide/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ Cartesian3.fromDegrees = function (
182182

183183
```javascript
184184
"use strict";
185+
185186
```
186187

187188
- :speedboat: To avoid type coercion (implicit type conversion), test for equality with `===` and `!==`, e.g.,

Source/Core/Color.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -541,10 +541,10 @@ Color.equals = function (left, right) {
541541
return (
542542
left === right || //
543543
(defined(left) && //
544-
defined(right) && //
545-
left.red === right.red && //
546-
left.green === right.green && //
547-
left.blue === right.blue && //
544+
defined(right) && //
545+
left.red === right.red && //
546+
left.green === right.green && //
547+
left.blue === right.blue && //
548548
left.alpha === right.alpha)
549549
);
550550
};
@@ -592,9 +592,9 @@ Color.prototype.equalsEpsilon = function (other, epsilon) {
592592
return (
593593
this === other || //
594594
(defined(other) && //
595-
Math.abs(this.red - other.red) <= epsilon && //
596-
Math.abs(this.green - other.green) <= epsilon && //
597-
Math.abs(this.blue - other.blue) <= epsilon && //
595+
Math.abs(this.red - other.red) <= epsilon && //
596+
Math.abs(this.green - other.green) <= epsilon && //
597+
Math.abs(this.blue - other.blue) <= epsilon && //
598598
Math.abs(this.alpha - other.alpha) <= epsilon)
599599
);
600600
};

Source/Core/Iau2006XysData.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ function requestXysChunk(xysData, chunkIndex) {
251251
if (defined(xysFileUrlTemplate)) {
252252
chunkUrl = xysFileUrlTemplate.getDerivedResource({
253253
templateValues: {
254-
"0": chunkIndex,
254+
0: chunkIndex,
255255
},
256256
});
257257
} else {

Source/DataSources/CheckerboardMaterialProperty.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ CheckerboardMaterialProperty.prototype.equals = function (other) {
143143
return (
144144
this === other || //
145145
(other instanceof CheckerboardMaterialProperty && //
146-
Property.equals(this._evenColor, other._evenColor) && //
147-
Property.equals(this._oddColor, other._oddColor) && //
146+
Property.equals(this._evenColor, other._evenColor) && //
147+
Property.equals(this._oddColor, other._oddColor) && //
148148
Property.equals(this._repeat, other._repeat))
149149
);
150150
};

Source/DataSources/CompositePositionProperty.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ CompositePositionProperty.prototype.equals = function (other) {
135135
return (
136136
this === other || //
137137
(other instanceof CompositePositionProperty && //
138-
this._referenceFrame === other._referenceFrame && //
138+
this._referenceFrame === other._referenceFrame && //
139139
this._composite.equals(other._composite, Property.equals))
140140
);
141141
};

Source/DataSources/GridMaterialProperty.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ GridMaterialProperty.prototype.equals = function (other) {
188188
return (
189189
this === other || //
190190
(other instanceof GridMaterialProperty && //
191-
Property.equals(this._color, other._color) && //
192-
Property.equals(this._cellAlpha, other._cellAlpha) && //
193-
Property.equals(this._lineCount, other._lineCount) && //
194-
Property.equals(this._lineThickness, other._lineThickness) && //
191+
Property.equals(this._color, other._color) && //
192+
Property.equals(this._cellAlpha, other._cellAlpha) && //
193+
Property.equals(this._lineCount, other._lineCount) && //
194+
Property.equals(this._lineThickness, other._lineThickness) && //
195195
Property.equals(this._lineOffset, other._lineOffset))
196196
);
197197
};

Source/DataSources/PolylineOutlineMaterialProperty.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ PolylineOutlineMaterialProperty.prototype.equals = function (other) {
144144
return (
145145
this === other || //
146146
(other instanceof PolylineOutlineMaterialProperty && //
147-
Property.equals(this._color, other._color) && //
148-
Property.equals(this._outlineColor, other._outlineColor) && //
147+
Property.equals(this._color, other._color) && //
148+
Property.equals(this._outlineColor, other._outlineColor) && //
149149
Property.equals(this._outlineWidth, other._outlineWidth))
150150
);
151151
};

Source/DataSources/PositionPropertyArray.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ PositionPropertyArray.prototype.equals = function (other) {
176176
return (
177177
this === other || //
178178
(other instanceof PositionPropertyArray && //
179-
this._referenceFrame === other._referenceFrame && //
179+
this._referenceFrame === other._referenceFrame && //
180180
Property.arrayEquals(this._value, other._value))
181181
);
182182
};

Source/DataSources/SampledPositionProperty.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ SampledPositionProperty.prototype.equals = function (other) {
318318
return (
319319
this === other || //
320320
(other instanceof SampledPositionProperty &&
321-
Property.equals(this._property, other._property) && //
321+
Property.equals(this._property, other._property) && //
322322
this._referenceFrame === other._referenceFrame)
323323
);
324324
};

Source/DataSources/StripeMaterialProperty.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ StripeMaterialProperty.prototype.equals = function (other) {
177177
return (
178178
this === other || //
179179
(other instanceof StripeMaterialProperty && //
180-
Property.equals(this._orientation, other._orientation) && //
181-
Property.equals(this._evenColor, other._evenColor) && //
182-
Property.equals(this._oddColor, other._oddColor) && //
183-
Property.equals(this._offset, other._offset) && //
180+
Property.equals(this._orientation, other._orientation) && //
181+
Property.equals(this._evenColor, other._evenColor) && //
182+
Property.equals(this._oddColor, other._oddColor) && //
183+
Property.equals(this._offset, other._offset) && //
184184
Property.equals(this._repeat, other._repeat))
185185
);
186186
};

Source/DataSources/TimeIntervalCollectionPositionProperty.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ TimeIntervalCollectionPositionProperty.prototype.equals = function (other) {
136136
return (
137137
this === other || //
138138
(other instanceof TimeIntervalCollectionPositionProperty && //
139-
this._intervals.equals(other._intervals, Property.equals) && //
139+
this._intervals.equals(other._intervals, Property.equals) && //
140140
this._referenceFrame === other._referenceFrame)
141141
);
142142
};

Specs/Core/ResourceSpec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ describe("Core/Resource", function () {
224224
var resource = new Resource({
225225
url: "http://test.com/tileset/{0}/{1}",
226226
templateValues: {
227-
"0": "test1",
228-
"1": "test2",
227+
0: "test1",
228+
1: "test2",
229229
},
230230
});
231231

Specs/SpecRunner.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</head>
2626
<body>
2727
<span
28-
style="font-family: 'Open Sans'; position: absolute; visibility: hidden;"
28+
style="font-family: 'Open Sans'; position: absolute; visibility: hidden"
2929
>&nbsp;</span
3030
>
3131
<script>

index.release.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@
4242
}
4343
</style>
4444
</head>
45-
<body style="background-color: #f5f7f9;">
45+
<body style="background-color: #f5f7f9">
4646
<div>
4747
<div class="section">
4848
<a href="https://cesium.com/cesiumjs/"
4949
><img
5050
src="https://cesium.com/images/logos/cesiumjs/cesiumjs_color_black.png"
51-
style="width: 400px;"
51+
style="width: 400px"
5252
/></a>
5353
</div>
5454
<div class="section">
@@ -152,7 +152,7 @@ <h2>External links</h2>
152152
</tbody>
153153
</table>
154154
<div
155-
style="padding-top: 300px; font-size: 10pt; vertical-align: bottom;"
155+
style="padding-top: 300px; font-size: 10pt; vertical-align: bottom"
156156
>
157157
&copy; 2011-2020 CesiumJS Contributors
158158
</div>

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"mime": "^2.0.3",
7979
"mkdirp": "^1.0.0",
8080
"open": "^7.0.0",
81-
"prettier": "^2.0.4",
81+
"prettier": "^2.1.1",
8282
"pretty-quick": "^2.0.1",
8383
"request": "^2.79.0",
8484
"rimraf": "^3.0.0",

0 commit comments

Comments
 (0)