sindresorhus/eslint-plugin-unicorn
prevent-abbreviations renames parameter, but not reference to parameter in type guard signature
Fermée
#765 ouverte le 2 juin 2020
bughelp wanted
Métriques du dépôt
- Stars
- (5 022 étoiles)
- Métriques de merge PR
- (Merge moyen 1j 16h) (399 PRs mergées en 30 j)
Description
Repro:
const isString = (val: unknown): val is string => typeof val === 'string'
gets autofixed to
const isString = (value: unknown): val is string => typeof value === 'string'
which no longer compiles because the signature still mentions val.