Skip to content

Remove unnecessary tsconfig.json flags. #2067

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 9, 2019

Conversation

mikelehen
Copy link
Contributor

@mikelehen mikelehen commented Aug 8, 2019

tsconfig.base.json enables "strict" now which implicitly enables
"strictFunctionTypes", "strictNullChecks", and "noImplicitAny" (see https://www.typescriptlang.org/docs/handbook/compiler-options.html) so we don't need
to do so explicitly.

We were disabling "alwaysStrict" but that was unnecessary since we have no violations.

tsconfig.base.json enables "strict" now which implicitly enables
"strictFunctionTypes", "strictNullChecks", and "noImplicitAny" so we don't need
to do so explicitly.

Disabling "alwaysStrict" and "noImplicitThis" was unnecessary since we have no
violations.
@mikelehen
Copy link
Contributor Author

mikelehen commented Aug 8, 2019

Oops. yarn build succeeds, but that doesn't validate our test files. So this isn't quite ready.

@schmidt-sebastian
Copy link
Contributor

LGTM. I wonder if it makes sense to add a different tsconfig setting for our tests, so that we can enable noImplicitThis in the main client code.

@schmidt-sebastian
Copy link
Contributor

Please ignore comment (just saw https://github.com/firebase/firebase-js-sdk/pull/2068/files)

@mikelehen mikelehen merged commit 8a33cae into master Aug 9, 2019
@mikelehen mikelehen deleted the mikelehen/firestore-strict-flag-cleanup branch August 9, 2019 20:10
mikelehen pushed a commit that referenced this pull request Aug 12, 2019
tsconfig.base.json enables "strict" now which implicitly enables "strictFunctionTypes", "strictNullChecks", and "noImplicitAny" so we don't need to do so explicitly.

Disabling "alwaysStrict" was unnecessary since we have no violations.
@firebase firebase locked and limited conversation to collaborators Oct 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants