sindresorhus/eslint-plugin-unicorn
GitHub で見るprevent-abbreviations renames parameter, but not reference to parameter in type guard signature
Open
#765 opened on 2020年6月2日
bughelp wanted
説明
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.