4 ms·
Have a pointer to a sane default tsconfig.json people could build upon?
by kevsim 8y ago
Have a pointer to a sane default tsconfig.json people could build upon?
- peterkelly 8y agoHere's what I use: { "compilerOptions": { "target": "es6", "module": "commonjs", "outDir": "../dist", "declaration": false, "strict": true, "resolveJsonModule": true, "noImplicitAny": true, "noImplicitThis": true, "noImplicitReturns": true, "noUnusedLocals": true, "jsx": "react", "lib": [ "es2017", "dom" ] }, "compileOnSave": false, "buildOnSave": false }
- cageface 8y agoJust turning on the --strict flag gets you most of the checks you want in a clean codebase. https://www.typescriptlang.org/docs/handbook/compiler-options.html https://www.typescriptlang.org/docs/handbook/compiler-option...