rsms / estrella

Lightweight and versatile build tool based on the esbuild compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to turn off TypeScript diagnostics?

AlCalzone opened this issue · comments

I have a project where I need to turn off TypeScript diagnostics for one build. I don't seem to be able to do it, no matter what I set for the tslint and/or tsc options. Any hints what I might try?

build({
  // ...
  tslint: false,
  // ...
})

Here in the documentation :-)

estrella/estrella.d.ts

Lines 54 to 66 in 33ede3c

// tslint controls if TypeScript diagnostics are run.
// tslint==undefined || tslint=="auto"
// Automatically enable tsc diagnostics.
// If tsc is found in node_modules and a tsconfig.json file is found.
// tslint==true || tslint=="on"
// Run tsc either from node_modules or if not found there, in a shell from PATH.
// tslint==false || tslint=="off"
// Do not run tsc
// TSLintBasicOptions
// Use the provided options for tslint and treat TSLintBasicOptions.mode as the value
// with effects as described above.
//
tslint? :boolean | "auto" | "on" | "off" | TSLintBasicOptions

Well... I feel stupid now.

I could swear I had tslint: false in the config. Tried again and now it works.

Ha, ha... Sometimes its hard to see the forest for the trees :–)