diff --git a/.eslintrc.js b/.eslintrc.js index a54d3c26..860cacbf 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,3 +1,4 @@ +// eslint-disable-next-line no-undef module.exports = { root: true, parser: "@typescript-eslint/parser", @@ -18,6 +19,7 @@ module.exports = { "eol-last": ["error", "always"], "no-trailing-spaces": "error", "brace-style": ["error", "1tbs", { "allowSingleLine": true }], + "indent": ["error", 2], // TypeScript "@typescript-eslint/semi": "error", "@typescript-eslint/consistent-type-imports": "error", @@ -47,5 +49,4 @@ module.exports = { }, ], }, - ignorePatterns: ["**/*.js"], }; diff --git a/src/game/index.ts b/src/game/index.ts index bbaa6d22..05c8aa34 100644 --- a/src/game/index.ts +++ b/src/game/index.ts @@ -282,9 +282,9 @@ export class Game extends Phaser.Game implements IGame { public getDifficultyMultiplier() { switch (this.difficulty) { - case GameDifficulty.EASY: return 0.8; - case GameDifficulty.HARD: return 1.4; - default: return 1.0; + case GameDifficulty.EASY: return 0.8; + case GameDifficulty.HARD: return 1.4; + default: return 1.0; } } diff --git a/src/game/scenes/gameover/interface/index.tsx b/src/game/scenes/gameover/interface/index.tsx index 23afb70b..6e7a22e4 100644 --- a/src/game/scenes/gameover/interface/index.tsx +++ b/src/game/scenes/gameover/interface/index.tsx @@ -37,7 +37,7 @@ export const GameoverUI: React.FC = ({ stat, record }) => { - +