We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no-explict-spread-props
<a className={styles.link} {...{ href: props.href, rel: 'noopener noreferrer', target: '_blank', }} {...props} > {label} </a>
This kind of code should be forbidden and should be auto fixed to
<a className={styles.link} href={props.href} rel="noopener noreferrer" target="_blank" {...props} > {label} </a>
No response
This should be allowed:
<Comp {...( props.a ? { b: 'c' } : {} )} {...props} />
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the problem
Describe the solution you'd like
This kind of code should be forbidden and should be auto fixed to
Alternatives considered
No response
Additional context
This should be allowed:
The text was updated successfully, but these errors were encountered: