This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
Fix lint/tsc issues when the strict tsc flag is true (again) #487
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey guys, thanks for getting #464 merged and released! Unfortunately, the additional commit that was included in the
1.25
release (d4c34b7) happened to introduce a new TSLint error, which means we still can't turn on Typescript'sstrict
mode. This PR fixes that error.Obviously this approach of us post-hoc fixing
strict
mode compile errors is not really sustainable long term. However, in the short term, we'd really like to get at least one release ofskyux-builder
where we can switchstrict
mode on. Hence this PR. If you could possibly create a patch release with just this commit, it would be fantastic! We can then stay on that version until we can come up with a more sustainable solution. For the longer term, I'm happy to create an issue to discuss some possible permanent solutions, but just as an example we could:strict
mode for the local build ofskyux-builder
. We would have to be careful not to change the defaulttsconfig.json
, as this is referenced in theskyux new
template, and we do not want to effect all consuming projects.skyux-builder/runtime
. That way typescript files inskyux-builder
couldn't effect consumers of the library, allowing them to use whatever typescript compiler settings (and ideally, version) that they like.Any thoughts?
Additional Info
You can reproduce this error yourself by running
skyux new
, settingcompilerOptions": { "strict": true }
intsconfig.json
, and then updatingHomeComponent
to importSkyuxConfig
as follows:When running
skyux lint
, you should see the error: