feature/feat-improve-ts-setup #1812

Merged
dpschen merged 10 commits from dpschen/frontend:feature/feat-improve-ts-setup into main 2022-07-04 21:50:50 +00:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit 997b1bcedf - Show all commits

View File

@ -6,12 +6,12 @@
"composite": true,
"baseUrl": ".",
// "importHelpers": true,
"importHelpers": true,
dpschen marked this conversation as resolved Outdated

Isn't this invalid json with the //?

Isn't this invalid json with the `//`?
Yes: - https://github.com/microsoft/TypeScript/issues/4987 - https://www.reddit.com/r/typescript/comments/8na5vb/tsconfigjson_isnt_strict_json_what_now/
"sourceMap": true,
"strictNullChecks": true,
// "allowJs": true,
// "allowSyntheticDefaultImports": true,
dpschen marked this conversation as resolved Outdated

I was not sure about these options.
The latter should probably be enabled.

I was not sure about these options. The latter should probably be enabled.

Does the linter still pass when it is enabled?

Does the linter still pass when it is enabled?

This only affects tslint.
I googled a bit and I think I would use the following:

    "importHelpers": true,
    "sourceMap": true,
    "strictNullChecks": true,
    // "allowJs": true,
    // "allowSyntheticDefaultImports": true,

If we need to we can still use js if we disable the rule for that line.
It seems good to have allowSyntheticDefaultImports disabled

This only affects tslint. I googled a bit and I think I would use the following: ``` "importHelpers": true, "sourceMap": true, "strictNullChecks": true, // "allowJs": true, // "allowSyntheticDefaultImports": true, ``` If we need to we can still use js if we disable the rule for that line. It seems good to have `allowSyntheticDefaultImports` disabled

Changed.
Anything else missing for the merge?

Changed. Anything else missing for the merge?

I think this should be fine.

I think this should be fine.
// "sourceMap": true,
// "strictNullChecks": true,
"paths": {
"@/*": ["./src/*"]
}