Some linting issues

This commit is contained in:
pietervdvn 2022-04-08 04:36:00 +02:00
parent 9238f0f381
commit 55dd4c58ee
5 changed files with 6 additions and 10 deletions

View file

@ -14,7 +14,7 @@ import {VariableUiElement} from "./Base/VariableUIElement";
import Svg from "../Svg"; import Svg from "../Svg";
export default class AllThemesGui { export default class AllThemesGui {
constructor() { setup() {
try { try {
new FixedUiElement("").AttachTo("centermessage") new FixedUiElement("").AttachTo("centermessage")

View file

@ -19,4 +19,4 @@ if (layout !== "") {
Utils.DisableLongPresses() Utils.DisableLongPresses()
document.getElementById("decoration-desktop").remove(); document.getElementById("decoration-desktop").remove();
new AllThemesGui(); new AllThemesGui().setup();

View file

@ -26,7 +26,7 @@ class Init {
if (layoutToUse === undefined) { if (layoutToUse === undefined) {
// No layout found // No layout found
new AllThemesGui() new AllThemesGui().setup()
return; return;
} }
@ -37,8 +37,6 @@ class Init {
// @ts-ignore // @ts-ignore
window.mapcomplete_state = State.state; window.mapcomplete_state = State.state;
new DefaultGUI(State.state, guiState) new DefaultGUI(State.state, guiState)
} }
} }

View file

@ -44,7 +44,7 @@
"gittag": "ts-node scripts/printVersion.ts | bash", "gittag": "ts-node scripts/printVersion.ts | bash",
"lint": "tslint --project . -c tslint.json '**.ts' ", "lint": "tslint --project . -c tslint.json '**.ts' ",
"clean:tests": "(find . -type f -name \"*.doctest.ts\" | xargs rm)", "clean:tests": "(find . -type f -name \"*.doctest.ts\" | xargs rm)",
"clean": "rm -rf .cache/ && (find *.html | grep -v \"\\(404\\|index\\|land\\|test\\|preferences\\|customGenerator\\|professional\\|automaton\\|import_helper\\|import_viewer\\|theme\\).html\" | xargs rm) && (ls | grep \"^index_[a-zA-Z_]\\+\\.ts$\" | xargs rm) && (ls | grep \".*.webmanifest$\" | xargs rm)", "clean": "rm -rf .cache/ && (find *.html | grep -v \"\\(404\\|index\\|land\\|test\\|preferences\\|customGenerator\\|professional\\|automaton\\|import_helper\\|import_viewer\\|theme\\).html\" | xargs rm) && (ls | grep \"^index_[a-zA-Z_-]\\+\\.ts$\" | xargs rm) && (ls | grep \".*.webmanifest$\" | xargs rm)",
"generate:dependency-graph": "node_modules/.bin/depcruise --exclude \"^node_modules\" --output-type dot Logic/State/MapState.ts > dependencies.dot && dot dependencies.dot -T svg -o dependencies.svg && rm dependencies.dot", "generate:dependency-graph": "node_modules/.bin/depcruise --exclude \"^node_modules\" --output-type dot Logic/State/MapState.ts > dependencies.dot && dot dependencies.dot -T svg -o dependencies.svg && rm dependencies.dot",
"script": "ts-node" "script": "ts-node"
}, },

View file

@ -13,8 +13,7 @@ new Combine(
try { try {
inp = ValidatedTextField.ForType(key).ConstructInputElement({ inp = ValidatedTextField.ForType(key).ConstructInputElement({
feedback, feedback,
country: () => "be", country: () => "be"
}); });
} catch (e) { } catch (e) {
console.error(e) console.error(e)
@ -30,4 +29,3 @@ new Combine(
} }
) )
).AttachTo("maindiv") ).AttachTo("maindiv")