{"action":"created","comment":{"url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/pulls/comments/204333842","pull_request_review_id":139392710,"id":204333842,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNDMzMzg0Mg==","diff_hunk":"@@ -401,19 +402,22 @@ module.exports = {\n               usePrettierrc &&\n               prettier.resolveConfig &&\n               prettier.resolveConfig.sync\n-                ? prettier.resolveConfig.sync(context.getFilename(), {\n+                ? prettier.resolveConfig.sync(sourceFileName, {\n                     editorconfig: true\n                   })\n                 : null;\n             const prettierOptions = Object.assign(\n               {},\n               prettierRcOptions,\n               eslintPrettierOptions,\n-              { filepath: context.getFilename() }\n+              { filepath: sourceFileName }\n             );\n-\n             const prettierSource = prettier.format(source, prettierOptions);\n-            if (source !== prettierSource) {\n+            const sourceFileInfo = prettier.getFileInfo.sync(sourceFileName, {","path":"eslint-plugin-prettier.js","position":27,"original_position":27,"commit_id":"e7d46c772ceb24391ce544ff72b222e7df1cdc3c","original_commit_id":"e7d46c772ceb24391ce544ff72b222e7df1cdc3c","user":{"login":"not-an-aardvark","id":11638619,"node_id":"MDQ6VXNlcjExNjM4NjE5","avatar_url":"https://avatars2.githubusercontent.com/u/11638619?v=4","gravatar_id":"","url":"https://api.github.com/users/not-an-aardvark","html_url":"https://github.com/not-an-aardvark","followers_url":"https://api.github.com/users/not-an-aardvark/followers","following_url":"https://api.github.com/users/not-an-aardvark/following{/other_user}","gists_url":"https://api.github.com/users/not-an-aardvark/gists{/gist_id}","starred_url":"https://api.github.com/users/not-an-aardvark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/not-an-aardvark/subscriptions","organizations_url":"https://api.github.com/users/not-an-aardvark/orgs","repos_url":"https://api.github.com/users/not-an-aardvark/repos","events_url":"https://api.github.com/users/not-an-aardvark/events{/privacy}","received_events_url":"https://api.github.com/users/not-an-aardvark/received_events","type":"User","site_admin":false},"body":"Since the user installs `prettier` independently of `eslint-plugin-prettier`, it would be a breaking change to drop support for old versions of `prettier`, because we don't have any control over what version the user has installed.","created_at":"2018-07-23T09:18:13Z","updated_at":"2018-07-23T09:18:14Z","html_url":"https://github.com/prettier/eslint-plugin-prettier/pull/104#discussion_r204333842","pull_request_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/pulls/104","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/prettier/eslint-plugin-prettier/pulls/comments/204333842"},"html":{"href":"https://github.com/prettier/eslint-plugin-prettier/pull/104#discussion_r204333842"},"pull_request":{"href":"https://api.github.com/repos/prettier/eslint-plugin-prettier/pulls/104"}},"in_reply_to_id":204197163},"pull_request":{"url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/pulls/104","id":201916029,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxOTE2MDI5","html_url":"https://github.com/prettier/eslint-plugin-prettier/pull/104","diff_url":"https://github.com/prettier/eslint-plugin-prettier/pull/104.diff","patch_url":"https://github.com/prettier/eslint-plugin-prettier/pull/104.patch","issue_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/issues/104","number":104,"state":"open","locked":false,"title":"Respect .prettierignore config","user":{"login":"kapowaz","id":25730,"node_id":"MDQ6VXNlcjI1NzMw","avatar_url":"https://avatars0.githubusercontent.com/u/25730?v=4","gravatar_id":"","url":"https://api.github.com/users/kapowaz","html_url":"https://github.com/kapowaz","followers_url":"https://api.github.com/users/kapowaz/followers","following_url":"https://api.github.com/users/kapowaz/following{/other_user}","gists_url":"https://api.github.com/users/kapowaz/gists{/gist_id}","starred_url":"https://api.github.com/users/kapowaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kapowaz/subscriptions","organizations_url":"https://api.github.com/users/kapowaz/orgs","repos_url":"https://api.github.com/users/kapowaz/repos","events_url":"https://api.github.com/users/kapowaz/events{/privacy}","received_events_url":"https://api.github.com/users/kapowaz/received_events","type":"User","site_admin":false},"body":"This PR fixes an issue with eslint-plugin-prettier not respecting file ignore patterns specified in `.prettierignore` (#88).\r\n\r\nCurrently this is failing due to #98 (since I need to upgrade to prettier 1.13.x to make use of `prettier.getFileInfo()`) and so many of the erroneous examples fail with this message:\r\n\r\n```\r\nError: No parser could be inferred for file: <input>\r\n```","created_at":"2018-07-17T11:54:35Z","updated_at":"2018-07-23T09:18:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e64a2684cd5e91f65eb48e230067d31009c3ab7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/pulls/104/commits","review_comments_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/pulls/104/comments","review_comment_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/issues/104/comments","statuses_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/statuses/e7d46c772ceb24391ce544ff72b222e7df1cdc3c","head":{"label":"kapowaz:fix-respect-prettierignore","ref":"fix-respect-prettierignore","sha":"e7d46c772ceb24391ce544ff72b222e7df1cdc3c","user":{"login":"kapowaz","id":25730,"node_id":"MDQ6VXNlcjI1NzMw","avatar_url":"https://avatars0.githubusercontent.com/u/25730?v=4","gravatar_id":"","url":"https://api.github.com/users/kapowaz","html_url":"https://github.com/kapowaz","followers_url":"https://api.github.com/users/kapowaz/followers","following_url":"https://api.github.com/users/kapowaz/following{/other_user}","gists_url":"https://api.github.com/users/kapowaz/gists{/gist_id}","starred_url":"https://api.github.com/users/kapowaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kapowaz/subscriptions","organizations_url":"https://api.github.com/users/kapowaz/orgs","repos_url":"https://api.github.com/users/kapowaz/repos","events_url":"https://api.github.com/users/kapowaz/events{/privacy}","received_events_url":"https://api.github.com/users/kapowaz/received_events","type":"User","site_admin":false},"repo":{"id":141272590,"node_id":"MDEwOlJlcG9zaXRvcnkxNDEyNzI1OTA=","name":"eslint-plugin-prettier","full_name":"kapowaz/eslint-plugin-prettier","owner":{"login":"kapowaz","id":25730,"node_id":"MDQ6VXNlcjI1NzMw","avatar_url":"https://avatars0.githubusercontent.com/u/25730?v=4","gravatar_id":"","url":"https://api.github.com/users/kapowaz","html_url":"https://github.com/kapowaz","followers_url":"https://api.github.com/users/kapowaz/followers","following_url":"https://api.github.com/users/kapowaz/following{/other_user}","gists_url":"https://api.github.com/users/kapowaz/gists{/gist_id}","starred_url":"https://api.github.com/users/kapowaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kapowaz/subscriptions","organizations_url":"https://api.github.com/users/kapowaz/orgs","repos_url":"https://api.github.com/users/kapowaz/repos","events_url":"https://api.github.com/users/kapowaz/events{/privacy}","received_events_url":"https://api.github.com/users/kapowaz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kapowaz/eslint-plugin-prettier","description":"ESLint plugin for prettier formatting","fork":true,"url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier","forks_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/forks","keys_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/teams","hooks_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/hooks","issue_events_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/issues/events{/number}","events_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/events","assignees_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/assignees{/user}","branches_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/branches{/branch}","tags_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/tags","blobs_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/git/refs{/sha}","trees_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/statuses/{sha}","languages_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/languages","stargazers_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/stargazers","contributors_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/contributors","subscribers_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/subscribers","subscription_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/subscription","commits_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/commits{/sha}","git_commits_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/git/commits{/sha}","comments_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/comments{/number}","issue_comment_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/issues/comments{/number}","contents_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/contents/{+path}","compare_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/merges","archive_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/downloads","issues_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/issues{/number}","pulls_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/pulls{/number}","milestones_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/milestones{/number}","notifications_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/labels{/name}","releases_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/releases{/id}","deployments_url":"https://api.github.com/repos/kapowaz/eslint-plugin-prettier/deployments","created_at":"2018-07-17T10:19:28Z","updated_at":"2018-07-17T10:19:30Z","pushed_at":"2018-07-20T09:13:31Z","git_url":"git://github.com/kapowaz/eslint-plugin-prettier.git","ssh_url":"git@github.com:kapowaz/eslint-plugin-prettier.git","clone_url":"https://github.com/kapowaz/eslint-plugin-prettier.git","svn_url":"https://github.com/kapowaz/eslint-plugin-prettier","homepage":null,"size":103,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"prettier:master","ref":"master","sha":"bc337809caf860130aea457fb5d4a298eb61aa39","user":{"login":"prettier","id":25822731,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1ODIyNzMx","avatar_url":"https://avatars2.githubusercontent.com/u/25822731?v=4","gravatar_id":"","url":"https://api.github.com/users/prettier","html_url":"https://github.com/prettier","followers_url":"https://api.github.com/users/prettier/followers","following_url":"https://api.github.com/users/prettier/following{/other_user}","gists_url":"https://api.github.com/users/prettier/gists{/gist_id}","starred_url":"https://api.github.com/users/prettier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prettier/subscriptions","organizations_url":"https://api.github.com/users/prettier/orgs","repos_url":"https://api.github.com/users/prettier/repos","events_url":"https://api.github.com/users/prettier/events{/privacy}","received_events_url":"https://api.github.com/users/prettier/received_events","type":"Organization","site_admin":false},"repo":{"id":80084817,"node_id":"MDEwOlJlcG9zaXRvcnk4MDA4NDgxNw==","name":"eslint-plugin-prettier","full_name":"prettier/eslint-plugin-prettier","owner":{"login":"prettier","id":25822731,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1ODIyNzMx","avatar_url":"https://avatars2.githubusercontent.com/u/25822731?v=4","gravatar_id":"","url":"https://api.github.com/users/prettier","html_url":"https://github.com/prettier","followers_url":"https://api.github.com/users/prettier/followers","following_url":"https://api.github.com/users/prettier/following{/other_user}","gists_url":"https://api.github.com/users/prettier/gists{/gist_id}","starred_url":"https://api.github.com/users/prettier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prettier/subscriptions","organizations_url":"https://api.github.com/users/prettier/orgs","repos_url":"https://api.github.com/users/prettier/repos","events_url":"https://api.github.com/users/prettier/events{/privacy}","received_events_url":"https://api.github.com/users/prettier/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/prettier/eslint-plugin-prettier","description":"ESLint plugin for prettier formatting","fork":false,"url":"https://api.github.com/repos/prettier/eslint-plugin-prettier","forks_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/forks","keys_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/teams","hooks_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/hooks","issue_events_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/issues/events{/number}","events_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/events","assignees_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/assignees{/user}","branches_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/branches{/branch}","tags_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/tags","blobs_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/git/refs{/sha}","trees_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/statuses/{sha}","languages_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/languages","stargazers_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/stargazers","contributors_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/contributors","subscribers_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/subscribers","subscription_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/subscription","commits_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/commits{/sha}","git_commits_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/git/commits{/sha}","comments_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/comments{/number}","issue_comment_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/issues/comments{/number}","contents_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/contents/{+path}","compare_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/merges","archive_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/downloads","issues_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/issues{/number}","pulls_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/pulls{/number}","milestones_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/milestones{/number}","notifications_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/labels{/name}","releases_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/releases{/id}","deployments_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/deployments","created_at":"2017-01-26T04:09:32Z","updated_at":"2018-07-18T23:33:47Z","pushed_at":"2018-07-20T09:13:34Z","git_url":"git://github.com/prettier/eslint-plugin-prettier.git","ssh_url":"git@github.com:prettier/eslint-plugin-prettier.git","clone_url":"https://github.com/prettier/eslint-plugin-prettier.git","svn_url":"https://github.com/prettier/eslint-plugin-prettier","homepage":null,"size":98,"stargazers_count":664,"watchers_count":664,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":53,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":53,"open_issues":13,"watchers":664,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prettier/eslint-plugin-prettier/pulls/104"},"html":{"href":"https://github.com/prettier/eslint-plugin-prettier/pull/104"},"issue":{"href":"https://api.github.com/repos/prettier/eslint-plugin-prettier/issues/104"},"comments":{"href":"https://api.github.com/repos/prettier/eslint-plugin-prettier/issues/104/comments"},"review_comments":{"href":"https://api.github.com/repos/prettier/eslint-plugin-prettier/pulls/104/comments"},"review_comment":{"href":"https://api.github.com/repos/prettier/eslint-plugin-prettier/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prettier/eslint-plugin-prettier/pulls/104/commits"},"statuses":{"href":"https://api.github.com/repos/prettier/eslint-plugin-prettier/statuses/e7d46c772ceb24391ce544ff72b222e7df1cdc3c"}},"author_association":"NONE"}}
{"actor":{"display_login":"not-an-aardvark"}}