-
Notifications
You must be signed in to change notification settings - Fork 20
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
C2LC-575: Update react-scripts to version 5 #317
Changes from 4 commits
6fbd540
7f24b42
8ab5003
ba470c9
eab585e
fbd2b4e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[build] | ||
environment = { NODE_VERSION = "12" } | ||
environment = { NODE_VERSION = "14" } | ||
command = "npm run netlify-build" | ||
publish = "build/" |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,7 @@ export default class CharacterState { | |
return true; | ||
} | ||
|
||
// eslint-disable-next-line no-use-before-define | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are there any circumstances in which this check is helpful to us? If not, maybe we should disable the rule rather than adding all these comments. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's a good question. Disabling the rule, would certainly make the code cleaner by not requiring these comments. I think the rule offers some value but I think not a huge amount. I'll disable the rule and remove the comments. We can always reconsider. But I think minimizing the number of ESLint-specific comments is worthwhile. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've disabled the "no-use-before-define" rule |
||
forward(distance: number, drawingEnabled: boolean): CharacterState { | ||
const movementResult = this.calculateMove(distance, this.direction, drawingEnabled); | ||
return new CharacterState( | ||
|
@@ -71,6 +72,7 @@ export default class CharacterState { | |
); | ||
} | ||
|
||
// eslint-disable-next-line no-use-before-define | ||
backward(distance: number, drawingEnabled: boolean): CharacterState { | ||
const movementResult = this.calculateMove(distance, | ||
C2lcMath.wrap(0, 8, this.direction + 4), drawingEnabled); | ||
|
@@ -83,6 +85,7 @@ export default class CharacterState { | |
); | ||
} | ||
|
||
// eslint-disable-next-line no-use-before-define | ||
turnLeft(amountEighthsOfTurn: number): CharacterState { | ||
return new CharacterState( | ||
this.xPos, | ||
|
@@ -93,6 +96,7 @@ export default class CharacterState { | |
); | ||
} | ||
|
||
// eslint-disable-next-line no-use-before-define | ||
turnRight(amountEighthsOfTurn: number): CharacterState { | ||
return new CharacterState( | ||
this.xPos, | ||
|
@@ -103,6 +107,7 @@ export default class CharacterState { | |
); | ||
} | ||
|
||
// eslint-disable-next-line no-use-before-define | ||
moveUpPosition(): CharacterState { | ||
let yPos = 0; | ||
if (this.sceneDimensions.getBoundsStateY(this.yPos - 1) === 'outOfBoundsBelow') { | ||
|
@@ -119,6 +124,7 @@ export default class CharacterState { | |
); | ||
} | ||
|
||
// eslint-disable-next-line no-use-before-define | ||
moveRightPosition(): CharacterState { | ||
let xPos = 0; | ||
if (this.sceneDimensions.getBoundsStateX(this.xPos + 1) === 'outOfBoundsAbove') { | ||
|
@@ -135,6 +141,7 @@ export default class CharacterState { | |
); | ||
} | ||
|
||
// eslint-disable-next-line no-use-before-define | ||
moveDownPosition(): CharacterState { | ||
let yPos = 0; | ||
if (this.sceneDimensions.getBoundsStateY(this.yPos + 1) === 'outOfBoundsAbove') { | ||
|
@@ -151,6 +158,7 @@ export default class CharacterState { | |
); | ||
} | ||
|
||
// eslint-disable-next-line no-use-before-define | ||
moveLeftPosition(): CharacterState { | ||
let xPos = 0; | ||
if (this.sceneDimensions.getBoundsStateY(this.xPos - 1) === 'outOfBoundsBelow') { | ||
|
@@ -167,6 +175,7 @@ export default class CharacterState { | |
); | ||
} | ||
|
||
// eslint-disable-next-line no-use-before-define | ||
changeXPosition(columnLabel: string): CharacterState { | ||
let newXPos = this.xPos; | ||
if (columnLabel <= String.fromCharCode(64 + this.sceneDimensions.getWidth()) && columnLabel >='A') { | ||
|
@@ -183,6 +192,7 @@ export default class CharacterState { | |
); | ||
} | ||
|
||
// eslint-disable-next-line no-use-before-define | ||
changeYPosition(rowLabel: number): CharacterState { | ||
let newYPos = this.yPos; | ||
if (rowLabel <= this.sceneDimensions.getHeight() && rowLabel >= 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.
I didn't see that you had updated this already when I commented earlier and filed C2LC-578. If we're already updating, then we should go ahead and update to
7.0.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.
Done. Thanks.