Closed Raynos closed 5 years ago
Introduces a new flag --ignore-catch;
--ignore-catch
If you want to get 100% type coverage then try {} catch {} is the largest blocked towards that.
try {} catch {}
This can be fixed in typescript with Allow type annotation on catch clause variable but until then you can turn on --ignoreCatch --at-least 100.
--ignoreCatch --at-least 100
Your catch blocks should look like
try { await ... } catch (anyErr) { const err = <Error> anyErr }
To have the highest type coverage.
git reset
git commit
npm run build
npm run lint
npm run fix
git add -A
.gitignore
npm run test
Released at v1.13.0, and I changed --ignoreCatch to --ignore-catch to be consistent with --at-least
--ignoreCatch
--at-least
Fixes(if relevant):
Introduces a new flag
--ignore-catch
;ignore catch
If you want to get 100% type coverage then
try {} catch {}
is the largest blocked towards that.This can be fixed in typescript with Allow type annotation on catch clause variable but until then you can turn on
--ignoreCatch --at-least 100
.Your catch blocks should look like
To have the highest type coverage.
Checks
git reset
thengit commit
)npm run build
)npm run lint
to check,npm run fix
to fix)git add -A
or add rules at.gitignore
file)npm run test
to check)