You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
prettier-eslint added rel="noreferrer" to the <a> element:
importReactfrom'react';exportdefaultfunctionComponent(){return(<div><ahref="http://google.com/"target="_blank"rel="noreferrer">
Test
</a></div>);}
Reproduction:
Problem description:
I'd like to have prettier-eslint fix only code style issues (spacing, formatting, etc), rather than all autofixable issues. But there seems to be no option to achieve this.
Suggested solution:
Perhaps provide a command-line option to change the --fix-type option of ESLint?
prettier-eslint-cli
version: 5.0.1prettier
version: 1.19.1eslint
version: 5.16.0Relevant code/config.
What you did:
What happened:
prettier-eslint added
rel="noreferrer"
to the<a>
element:Reproduction:
Problem description:
I'd like to have
prettier-eslint
fix only code style issues (spacing, formatting, etc), rather than all autofixable issues. But there seems to be no option to achieve this.Suggested solution:
Perhaps provide a command-line option to change the
--fix-type
option of ESLint?More info here: https://eslint.org/docs/user-guide/command-line-interface#--fix-type
The text was updated successfully, but these errors were encountered: