From fd2cd9c383b07cd681c18137396deae025d98047 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 3 Jan 2018 14:42:06 +0100 Subject: fix lint issues and separate message types into multiple files --- .vscode/settings.json | 3 ++- .vscode/tasks.json | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 .vscode/tasks.json (limited to '.vscode') diff --git a/.vscode/settings.json b/.vscode/settings.json index e17e44c92..565900b97 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,7 @@ // Place your settings in this file to overwrite default and user settings. { // Use latest language servicesu - "typescript.tsdk": "node_modules/typescript/lib", + "typescript.tsdk": "./node_modules/typescript/lib", // Defines space handling after a comma delimiter "typescript.format.insertSpaceAfterCommaDelimiter": true, // Defines space handling after a semicolon in a for statement @@ -34,5 +34,6 @@ }, "**/*.js.map": true }, + "tslint.enable": true, "editor.wrappingIndent": "same" } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 000000000..a14159944 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,44 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "type": "typescript", + "tsconfig": "tsconfig.json", + "option": "watch", + "problemMatcher": [ + "$tsc-watch" + ], + "group": "build", + "isBackground": true, + "promptOnClose": false + }, + { + "type": "typescript", + "tsconfig": "tsconfig.json", + "problemMatcher": [ + "$tsc" + ], + "group": "build" + }, + { + "label": "tslint", + "type": "shell", + "command": "make lint", + "problemMatcher": { + "owner": "tslint", + "applyTo": "allDocuments", + "fileLocation": "absolute", + "severity": "warning", + "pattern": "$tslint5" + }, + "group": "build" + }, + { + "label": "My Task", + "type": "shell", + "command": "echo Hello" + } + ] +} \ No newline at end of file -- cgit v1.2.3