To have basic support for TypeScriptToLua it is enough to configure your editor for TypeScript support.
Sometimes TypeScriptToLua has to report it's own errors during the compilation. To have the same errors displayed in your editor, you can use a language service plugin.
Most of advanced code editors can build your project with npm scripts.
VSCode supports running npm scripts using tasks. To define a task, create a
.vscode/tasks.json file or press
F1 and run
Tasks: Configure Task command. Example configuration: