prettier / prettier-vscode

Visual Studio Code extension for Prettier
https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
MIT License
5.15k stars 456 forks source link

Wrong formatting in JSX with renderProps #458

Closed tobiastimm closed 5 years ago

tobiastimm commented 6 years ago

When I add a 4th argument to the apollo arrow function prettier is pretty confused ^^ image

I don't have a .prettierrc in my repo only this .eslintrc

{
  "parser": "babel-eslint",
  "plugins": ["flowtype", "babel"],
  "extends": ["airbnb", "plugin:flowtype/recommended"],
  "rules": {
    "react/jsx-filename-extension": ["error", {
      "extensions": [".js", ".jsx"]
    }]
  },
  "settings": {
    "flowtype": {
      "onlyFilesWithFlowAnnotation": true
    }
  }
}

In my settings.json is only "prettier.eslintIntegration": true,

I don't have js-beautify or beautify installed

CiGit commented 6 years ago

Does it happen with eslintIntegration: false? Can you paste your code, It's hard to copy an image. Thanks

no-response[bot] commented 5 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. Currently, there is not enough information provided for us to take action. Please reply and reopen this issue if you need additional assistance.

github-actions[bot] commented 4 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.