question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tsconfig improvements

See original GitHub issue

there are few redundancies within tsconfig.

Also I suggest adding strict:true

I can send PR if you’re ok with that 😃

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
Hotellcommented, Oct 9, 2017

hey @jgw96 ! yw!

so I agree and kinda disagree as well 😄

  • Flow has this enabled by default so no excuses ( also it’s easier to adopt because better inference of any )
  • tsc --init has strict: true by default so no excuses again 😃

writing TS without strict is like writing most of the time without that safety seat belt TS provides for you.

If you don’t want to provide strict, at least let’s come to an agreement by enabling strictNullChecking

WDYT ?

0reactions
jgw96commented, Feb 19, 2018

Hello all! In the latest releases of Stencil we have added functionality to allow Stencil to read your tsconfig so you can turn on settings like strict mode optionally. At this time turning on strict mode by default is not something we want to do as it goes against our goal of making things as simple as possible out of the box. Because of this, I am going to close this issue for now. Thanks for using Stencil!

Read more comments on GitHub >

github_iconTop Results From Across the Web

TSConfig Reference - Docs on every TSConfig option
From allowJs to useDefineForClassFields the TSConfig reference includes information ... between components, and organize your code in new and improved ways.
Read more >
Performance · microsoft/TypeScript Wiki - GitHub
Each project has its own tsconfig.json that has dependencies on other projects. This can be helpful to avoid loading too many files in...
Read more >
Improving code quality in Typescript with compiler options
Switching from JavaScript to Typescript is a huge improvement in any ... Compiler options are properties in the tsconfig.json file that can ...
Read more >
20 TypeScript Compiler Options for your TSCONFIG.JSON
Using TypeScript with the default options makes your code a lot safer than JavaScript, but did you know that the type safety can...
Read more >
Lost all intellisense after 17.3, did you really make TSConfig ...
Stating this as an improvement is pretty bold if that is the case. I can understand making it work faster if you do...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found