phodal / adr

Architecture Decision Records in Node.js with Reporter, supported Windows, GNU/Linux, macOS - 轻量级架构决策记录工具
https://phodal.github.io/adr/
MIT License
262 stars 52 forks source link

'strict-type-predicates' error occurs on `yarn test` #48

Open Rindrics opened 1 year ago

Rindrics commented 1 year ago

I encountered the error below when I executed yarn test on 7da4097:

❯ yarn test
yarn run v1.22.19
$ yarn lint && yarn unit && nyc report --reporter=lcov && yarn check-coverage
$ tslint --project . src/**/*.ts
/Users/akirahayashi/dev/adr/src/lib/cache.ts:47:12
ERROR: 47:12  strict-type-predicates  Expression is always true.

I avoided the error on my branch: https://github.com/Rindrics/adr/tree/avoid-strict-type-predicates-error