Skip to content

Commit 86f00ee

Browse files
committed
eslint fixes
1 parent e1554c3 commit 86f00ee

33 files changed

Lines changed: 145 additions & 110 deletions

File tree

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
src/physics/matter-js/lib/
2+
src/physics/matter-js/poly-decomp/
23
src/polyfills/
34
src/renderer/webgl/shaders/
45
src/geom/polygon/Earcut.js

src/actions/GridAlign.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ var GridAlign = function (items, options)
3232
var position = GetValue(options, 'position', CONST.TOP_LEFT);
3333
var x = GetValue(options, 'x', 0);
3434
var y = GetValue(options, 'y', 0);
35+
3536
// var centerX = GetValue(options, 'centerX', null);
3637
// var centerY = GetValue(options, 'centerY', null);
3738

@@ -43,7 +44,7 @@ var GridAlign = function (items, options)
4344
// If the Grid is centered on a position then we need to calculate it now
4445
// if (centerX !== null && centerY !== null)
4546
// {
46-
//
47+
//
4748
// }
4849

4950
tempZone.setPosition(x, y);

src/cameras/sprite3d/Camera.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -892,8 +892,8 @@ var Camera = new Class({
892892
{
893893
if (out === undefined) { out = new Vector2(); }
894894

895-
//TODO: optimize this with a simple distance calculation:
896-
//https://developer.valvesoftware.com/wiki/Field_of_View
895+
// TODO: optimize this with a simple distance calculation:
896+
// https://developer.valvesoftware.com/wiki/Field_of_View
897897

898898
if (this.billboardMatrixDirty)
899899
{

src/display/mask/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
module.exports = {
1212

13-
BitmapMask: require('./BitmapMask'),
14-
GeometryMask: require('./GeometryMask')
13+
BitmapMask: require('./BitmapMask'),
14+
GeometryMask: require('./GeometryMask')
1515

1616
};

src/gameobjects/bitmaptext/ParseRetroFont.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -114,76 +114,76 @@ var ParseRetroFont = function (scene, config)
114114
* @constant
115115
* @type {string}
116116
*/
117-
ParseRetroFont.TEXT_SET1 = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
117+
ParseRetroFont.TEXT_SET1 = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~';
118118

119119
/**
120120
* Text Set 2 = !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ
121121
* @constant
122122
* @type {string}
123123
*/
124-
ParseRetroFont.TEXT_SET2 = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ";
124+
ParseRetroFont.TEXT_SET2 = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ';
125125

126126
/**
127127
* Text Set 3 = ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
128128
* @constant
129129
* @type {string}
130130
*/
131-
ParseRetroFont.TEXT_SET3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ";
131+
ParseRetroFont.TEXT_SET3 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ';
132132

133133
/**
134134
* Text Set 4 = ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789
135135
* @constant
136136
* @type {string}
137137
*/
138-
ParseRetroFont.TEXT_SET4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789";
138+
ParseRetroFont.TEXT_SET4 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789';
139139

140140
/**
141141
* Text Set 5 = ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789
142142
* @constant
143143
* @type {string}
144144
*/
145-
ParseRetroFont.TEXT_SET5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789";
145+
ParseRetroFont.TEXT_SET5 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() \'!?-*:0123456789';
146146

147147
/**
148148
* Text Set 6 = ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789"(),-.'
149149
* @constant
150150
* @type {string}
151151
*/
152-
ParseRetroFont.TEXT_SET6 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789\"(),-.' ";
152+
ParseRetroFont.TEXT_SET6 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789"(),-.\' ';
153153

154154
/**
155155
* Text Set 7 = AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW")28FLRX-'39
156156
* @constant
157157
* @type {string}
158158
*/
159-
ParseRetroFont.TEXT_SET7 = "AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW\")28FLRX-'39";
159+
ParseRetroFont.TEXT_SET7 = 'AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW")28FLRX-\'39';
160160

161161
/**
162162
* Text Set 8 = 0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ
163163
* @constant
164164
* @type {string}
165165
*/
166-
ParseRetroFont.TEXT_SET8 = "0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ";
166+
ParseRetroFont.TEXT_SET8 = '0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ';
167167

168168
/**
169169
* Text Set 9 = ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'"?!
170170
* @constant
171171
* @type {string}
172172
*/
173-
ParseRetroFont.TEXT_SET9 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'\"?!";
173+
ParseRetroFont.TEXT_SET9 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,\'"?!';
174174

175175
/**
176176
* Text Set 10 = ABCDEFGHIJKLMNOPQRSTUVWXYZ
177177
* @constant
178178
* @type {string}
179179
*/
180-
ParseRetroFont.TEXT_SET10 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
180+
ParseRetroFont.TEXT_SET10 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
181181

182182
/**
183183
* Text Set 11 = ABCDEFGHIJKLMNOPQRSTUVWXYZ.,"-+!?()':;0123456789
184184
* @constant
185185
* @type {string}
186186
*/
187-
ParseRetroFont.TEXT_SET11 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\"-+!?()':;0123456789";
187+
ParseRetroFont.TEXT_SET11 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ.,"-+!?()\':;0123456789';
188188

189189
module.exports = ParseRetroFont;

src/gameobjects/bitmaptext/ParseXMLBitmapFont.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ var ParseXMLBitmapFont = function (xml, xSpacing, ySpacing, frame)
5656
// if (gx + gw > frame.width)
5757
// {
5858
// diff = frame.width - (gx + gw);
59-
// gw -= diff;
59+
// gw -= diff;
6060
// }
6161

6262
// if (gy + gh > frame.height)
6363
// {
6464
// diff = frame.height - (gy + gh);
65-
// gh -= diff;
65+
// gh -= diff;
6666
// }
6767

6868
if (gx < left)

src/gameobjects/bitmaptext/static/BitmapTextCanvasRenderer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ var BitmapTextCanvasRenderer = function (renderer, src, interpolationPercentage,
144144
ctx.save();
145145
ctx.translate(x, y);
146146
ctx.scale(scale, scale);
147+
147148
// ctx.fillRect(0, 0, glyphW, glyphH);
148149
ctx.drawImage(image, glyphX, glyphY, glyphW, glyphH, 0, 0, glyphW, glyphH);
149150
ctx.restore();

src/gameobjects/bitmaptext/static/BitmapTextCreator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ GameObjectCreator.register('bitmapText', function (config)
2727
var font = GetValue(config, 'font', '');
2828
var text = GetAdvancedValue(config, 'text', '');
2929
var size = GetAdvancedValue(config, 'size', false);
30+
3031
// var align = GetValue(config, 'align', 'left');
3132

3233
var bitmapText = new BitmapText(this.scene, 0, 0, font, text, size);

src/gameobjects/components/Animation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,8 +658,8 @@ var Animation = new Class({
658658
return this;
659659
},
660660

661-
// Scale the time (make it go faster / slower)
662-
// Factor that's used to scale time where 1 = normal speed (the default), 0.5 = half speed, 2 = double speed, etc.
661+
// Scale the time (make it go faster / slower)
662+
// Factor that's used to scale time where 1 = normal speed (the default), 0.5 = half speed, 2 = double speed, etc.
663663

664664
/**
665665
* [description]

src/gameobjects/particles/ParticleEmitter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ var ParticleEmitter = new Class({
942942
if (this._frameCounter === this.frameQuantity)
943943
{
944944
this._frameCounter = 0;
945-
this.currentFrame = Wrap(this.currentFrame + 1, 0, this._frameLength);
945+
this.currentFrame = Wrap(this.currentFrame + 1, 0, this._frameLength);
946946
}
947947

948948
return frame;

0 commit comments

Comments
 (0)