Closed KidkArolis closed 5 years ago
I tried ignoring the line, but that doesn't seem to work:
// prettier-ignore
export default withRouter<Props>(Index)
Same issue filed in the prettier repo: https://github.com/prettier/prettier/issues/5460
// prettier-ignore works if I create .eslintrc
with:
{
"extends": ["plugin:flowtype/recommended"],
"plugins": ["flowtype"],
}
Kinda works now after .. updating all dependencies. I think it might be ok after all. Will come back after I double check.
prettier-standard 9 uses most recent version of prettier so it should fix the issue (you can configure parser by create appropriate .prettierrc file, .eslintrc is now ignored)
I don't know if this is an issue with
prettier
orprettier-standard
, but this how this code gets formatted into invalid syntax: