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";
export default class AllThemesGui {
constructor() {
setup() {
try {
new FixedUiElement("").AttachTo("centermessage")

View file

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

View file

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

View file

@ -44,7 +44,7 @@
"gittag": "ts-node scripts/printVersion.ts | bash",
"lint": "tslint --project . -c tslint.json '**.ts' ",
"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",
"script": "ts-node"
},

View file

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