Skip to content

Commit

Permalink
fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pierpo committed Sep 11, 2019
1 parent 041dd11 commit 257bb58
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
webpack*
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"start": "webpack-dev-server",
"pretest": "yarn lint && tsc --project .",
"test": "jest",
"lint": "tslint -c tslint.json 'src/**/*.ts'",
"lint": "eslint src --ext .ts --cache",
"deploy": "yarn build && gh-pages -d dist"
},
"dependencies": {
Expand All @@ -28,8 +28,6 @@
"prettier": "1.18.2",
"source-map-loader": "^0.2.3",
"ts-jest": "23.0.0",
"tslint": "5.11.0",
"tslint-eslint-rules": "5.3.1",
"typescript": "3.6.3",
"webpack": "4.10.2",
"webpack-cli": "3.0.2",
Expand Down
2 changes: 1 addition & 1 deletion src/game-objects/Mole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class Mole extends Monster {

protected MONSTER_SPEED = 20;

constructor(scene, x: number = 400, y: number = 400) {
constructor(scene, x = 400, y = 400) {
super(scene, x, y, ASSETS.IMAGES.MOLE_IDLE_DOWN);

this.hp = 3;
Expand Down
4 changes: 2 additions & 2 deletions src/game-objects/Monster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export abstract class Monster extends Character {

protected hp: number;
private chasingPlayerTimerEvent: Phaser.Time.TimerEvent;
private isWandering: boolean = false;
private isStartled: boolean = false;
private isWandering = false;
private isStartled = false;

public updateMonster() {
if (!this.active) {
Expand Down
2 changes: 1 addition & 1 deletion src/game-objects/Treant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class Treant extends Monster {

protected MONSTER_SPEED = 20;

constructor(scene, x: number = 400, y: number = 400) {
constructor(scene, x = 400, y = 400) {
super(scene, x, y, ASSETS.IMAGES.TREANT_IDLE_DOWN);

this.hp = 3;
Expand Down

0 comments on commit 257bb58

Please sign in to comment.