help wanted
仓库指标
- Star
- (8,630 star)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
I don’t think react/no-multi-comp should trigger on nested components or should have an option to disable it. A practical example:
import { FormattedMessage } from 'react-intl';
export function App() {
return (
<FormattedMessage
values={{
link:
// The next line triggers react/no-multi-comp
(text: string) => <a>{text}</a>,
}}
/>
);
}
I suggest to add an option ignoreNested which ignores any components that aren’t declared as part of the Program node body.