{"action":"opened","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/3808","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3808/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3808/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3808/events","html_url":"https://github.com/yarnpkg/yarn/issues/3808","id":240202503,"number":3808,"title":"Add https://github.com/prettier/eslint-config-prettier to avoid future conflicts in eslint rules","user":{"login":"voxsim","id":1021456,"avatar_url":"https://avatars0.githubusercontent.com/u/1021456?v=3","gravatar_id":"","url":"https://api.github.com/users/voxsim","html_url":"https://github.com/voxsim","followers_url":"https://api.github.com/users/voxsim/followers","following_url":"https://api.github.com/users/voxsim/following{/other_user}","gists_url":"https://api.github.com/users/voxsim/gists{/gist_id}","starred_url":"https://api.github.com/users/voxsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voxsim/subscriptions","organizations_url":"https://api.github.com/users/voxsim/orgs","repos_url":"https://api.github.com/users/voxsim/repos","events_url":"https://api.github.com/users/voxsim/events{/privacy}","received_events_url":"https://api.github.com/users/voxsim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-03T15:17:11Z","updated_at":"2017-07-03T15:17:11Z","closed_at":null,"body":"**Do you want to request a *feature* or report a *bug*?**\r\nFeature\r\n\r\n**What is the current behavior?**\r\nIf we add an eslint rules that conflicts with prettier we need to turn off it.\r\n\r\n**What is the expected behavior?**\r\nAdd https://github.com/prettier/eslint-config-prettier and forget about that :D \r\nWhen I tried the cli tool [prettier/eslint-config-prettier#cli-helper-tool](https://github.com/prettier/eslint-config-prettier#cli-helper-tool) there are some problems: every yarn command put `yarn run v<version>` on top of the result of each command.. when I try to pipe with `eslint-config-prettier-check` it does not work as expected.\r\n\r\nJust for info after adding https://github.com/prettier/eslint-config-prettier, i run it:\r\n\r\n```\r\nyarn run --json eslint -- --print-config .eslintrc | yarn run eslint-config-prettier-check\r\n```\r\n\r\nand the response is:\r\n```\r\nFailed to parse JSON:\r\nUnexpected token { in JSON at position 120\r\nerror Command failed with exit code 1.\r\ninfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command\r\n```\r\n\r\nbecause when I type\r\n\r\n```\r\nyarn run --json eslint -- --print-config .eslintrc\r\n```\r\n\r\nthis is the result:\r\n\r\n```\r\n{\"type\":\"command\",\"data\":\"\\\"/Users/user/Projects/open-source/yarn/node_modules/.bin/eslint\\\" --print-config .eslintrc\"}\r\n{\r\n  \"globals\": {\r\n    \"Array\": false,\r\n    \"ArrayBuffer\": false,\r\n    \"Boolean\": false,\r\n...\r\n}\r\n```\r\n\r\n**Please mention your node.js, yarn and operating system version.**\r\nEvery version of yarn\r\n\r\nMaybe this issue is trivial because I am forgetting about one flag that can turn off the head."}}
{"actor":{"display_login":"voxsim"}}