Fixed dev and devStandalone script (#1503)

* Fixed dev and devStandalone script

* Added eslint no-unreachable code rule

* Fix small type issue
This commit is contained in:
Thomas (DJ1TJOO) 2022-12-29 09:57:34 +01:00 committed by GitHub
parent ed6922f912
commit 0713c850ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View File

@ -21,5 +21,6 @@ rules:
prettier/prettier: error
no-undef: off
no-unused-vars: off
no-unreachable: off
no-prototype-builtins: off
linebreak-style: off

View File

@ -7,8 +7,8 @@
"license": "MIT",
"private": true,
"scripts": {
"dev": "cd gulp && yarn gulp main.serveDev",
"devStandalone": "cd gulp && yarn gulp main.serveStandalone",
"dev": "cd gulp && yarn gulp",
"devStandalone": "cd gulp && yarn gulp serve.standalone-steam",
"tslint": "cd src/js && tsc",
"lint": "eslint src/js",
"prettier-all": "prettier --write src/**/*.* && prettier --write gulp/**/*.*",

View File

@ -14,6 +14,11 @@ import { THEME } from "../../theme";
import { enumHubGoalRewards } from "../../tutorial_goals";
import { BaseHUDPart } from "../base_hud_part";
/* typehints:start */
// @ts-ignore
import { Component } from "../../component";
/* typehints:end */
const logger = createLogger("hud/mass_selector");
export class HUDMassSelector extends BaseHUDPart {