Detect suggestions reported with spread and ternary used in require-meta-has-suggestions
and other rules
#272
Labels
require-meta-has-suggestions
and other rules
#272
Some of our rules need to be able to detect when suggestions are reported.
I found a situation where we fail to unwrap the suggestions: https://github.com/typescript-eslint/typescript-eslint/blob/ad412cdd74dc5619fbe4bf27c0a5eb5c5a4b65ca/packages/eslint-plugin/src/rules/no-empty-interface.ts#L86
Alternatively:
require-meta-has-suggestions
andrequire-meta-fixable
could check for asuggest
orfix
property anywhere in the file and assume that this counts as a fixer or suggestions.This issue is not specific to TypeScript.
The text was updated successfully, but these errors were encountered: