Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

refactor: be strict #17

Merged
merged 1 commit into from
Sep 16, 2018
Merged

refactor: be strict #17

merged 1 commit into from
Sep 16, 2018

Conversation

nicksnyder
Copy link
Contributor

No description provided.

@nicksnyder nicksnyder merged commit cfa8eb5 into master Sep 16, 2018
@nicksnyder nicksnyder deleted the strict branch September 16, 2018 03:47
@@ -7,7 +7,8 @@
"lib": ["es6"],
"sourceMap": true,
"rootDir": "src",
"esModuleInterop": true
"esModuleInterop": true,
"strict": true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This flag does not mean ‘use strict’ mode. It enables strict TypeScript compile settings, which we already enable through our shared tsconfig, so this should have no effect (if it does, we should add it to the shared tsconfig instead)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think what you meant was alwaysStrict, but it should be added to the shared config.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strict implies alwaysStrict according to this:
https://www.typescriptlang.org/docs/handbook/compiler-options.html

It was already generating js that contained 'use strict' before this, but being strict seems like a good idea anyway. I didn't remember that we had a shared config.

sourcegraph/tsconfig#2

@sourcegraph-bot
Copy link

🎉 This PR is included in version 1.0.13 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants