Skip to content

Comments

enable noUncheckedIndexedAccess for stricter type checking#151

Merged
gfx merged 1 commit intomasterfrom
enable_noUncheckedIndexedAccess
Jan 3, 2021
Merged

enable noUncheckedIndexedAccess for stricter type checking#151
gfx merged 1 commit intomasterfrom
enable_noUncheckedIndexedAccess

Conversation

@gfx
Copy link
Member

@gfx gfx commented Jan 3, 2021

This PR also removes @typescript-eslint/no-non-null-assertion. It is too verbose with noUncheckedIndexedAccess even if the non-null assertion is safe to use. In fact, all of the non-null assertions in this code base are safe and inevitable.

@codecov-io
Copy link

codecov-io commented Jan 3, 2021

Codecov Report

Merging #151 (16facb0) into master (ac10a3d) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #151      +/-   ##
==========================================
- Coverage   98.30%   98.29%   -0.01%     
==========================================
  Files          15       15              
  Lines         943      941       -2     
  Branches      205      205              
==========================================
- Hits          927      925       -2     
  Misses         16       16              
Impacted Files Coverage Δ
src/CachedKeyDecoder.ts 100.00% <100.00%> (ø)
src/Decoder.ts 99.14% <100.00%> (ø)
src/utils/utf8.ts 95.19% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ac10a3d...16facb0. Read the comment docs.

@gfx gfx merged commit 760300d into master Jan 3, 2021
@gfx gfx deleted the enable_noUncheckedIndexedAccess branch January 3, 2021 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants