{
"compilerOptions": {
"outDir": "./dist/",
+ "sourceMap": true,
"noImplicitAny": true,
"module": "commonjs",
"target": "es5",
"jsx": "react",
"allowJs": true,
"moduleResolution": "node",
}
}
// mytsconfig.
{
"compilerOptions": {
"allowJs": true,
"checkJs": false,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"typeRoots": ["src/types", "node_modules/@types"],
"baseUrl": "src",
"paths": {
"@/*": ["*"] // matching @src/* to src/*
},
"outDir": "dist",
"experimentalDecorators": true,
},
"exclude": ["node_modules", "dist"],
"include": ["src/**/*","src/*"]
}
{
"compilerOptions": {
"experimentalDecorators": true,
"jsxImportSource": "preact"
}
}
In some files the option for checking comments is off by default
(tsconfig, tslint and eslint configs), as corresponding tools allow comments in
JSON (this is hardcoded).
So IDEs recognize this and allow you to add comments even if standard
doesnt allow.