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

refactor: be strict#17

Merged
nicksnyder merged 1 commit into
masterfrom
strict
Sep 16, 2018
Merged

refactor: be strict#17
nicksnyder merged 1 commit into
masterfrom
strict

Conversation

@nicksnyder

Copy link
Copy Markdown
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
Comment thread tsconfig.json
"rootDir": "src",
"esModuleInterop": true
"esModuleInterop": true,
"strict": true

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

🎉 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.

4 participants