{"action":"opened","number":537,"pull_request":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/pulls/537","id":65778024,"html_url":"https://github.com/yannickcr/eslint-plugin-react/pull/537","diff_url":"https://github.com/yannickcr/eslint-plugin-react/pull/537.diff","patch_url":"https://github.com/yannickcr/eslint-plugin-react/pull/537.patch","issue_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/537","number":537,"state":"open","locked":false,"title":"New rule: jsx-spread-operator-position","user":{"login":"jseminck","id":9586897,"avatar_url":"https://avatars.githubusercontent.com/u/9586897?v=3","gravatar_id":"","url":"https://api.github.com/users/jseminck","html_url":"https://github.com/jseminck","followers_url":"https://api.github.com/users/jseminck/followers","following_url":"https://api.github.com/users/jseminck/following{/other_user}","gists_url":"https://api.github.com/users/jseminck/gists{/gist_id}","starred_url":"https://api.github.com/users/jseminck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jseminck/subscriptions","organizations_url":"https://api.github.com/users/jseminck/orgs","repos_url":"https://api.github.com/users/jseminck/repos","events_url":"https://api.github.com/users/jseminck/events{/privacy}","received_events_url":"https://api.github.com/users/jseminck/received_events","type":"User","site_admin":false},"body":"A rule we want to enforce in our project is consistent position when using spread operator as a prop in JSX components.\r\n\r\nE.g. we either want it always at the beginning\r\n```js\r\n<MyComponent {...this.props.data} prop1 prop2 />\r\n```\r\n\r\nor at the end (we are still fighting about what approach to take)\r\n```js\r\n<MyComponent prop1 prop2 {this.props.data} />\r\n```\r\n\r\nI couldn't find any rule which enforces this... so decided to make another experiment and add it.  There are two options: \"begin\" and \"end\".\r\n\r\nI think the rule naming could use some fine-tuning. Not sure what would be a good name.\r\n\r\nPlease review the idea, code, style and add comments where needed. If you want this rule to be added then I will do my best to get it included.\r\n","created_at":"2016-04-08T12:21:20Z","updated_at":"2016-04-08T12:21:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"90370f9730d30b6541e9dac87bb5ffebc79125eb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/pulls/537/commits","review_comments_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/pulls/537/comments","review_comment_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/537/comments","statuses_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/statuses/39c21e63b23a7577a9ad9ecfa0decce815b1c63a","head":{"label":"jseminck:jsx-spread-operator-position","ref":"jsx-spread-operator-position","sha":"39c21e63b23a7577a9ad9ecfa0decce815b1c63a","user":{"login":"jseminck","id":9586897,"avatar_url":"https://avatars.githubusercontent.com/u/9586897?v=3","gravatar_id":"","url":"https://api.github.com/users/jseminck","html_url":"https://github.com/jseminck","followers_url":"https://api.github.com/users/jseminck/followers","following_url":"https://api.github.com/users/jseminck/following{/other_user}","gists_url":"https://api.github.com/users/jseminck/gists{/gist_id}","starred_url":"https://api.github.com/users/jseminck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jseminck/subscriptions","organizations_url":"https://api.github.com/users/jseminck/orgs","repos_url":"https://api.github.com/users/jseminck/repos","events_url":"https://api.github.com/users/jseminck/events{/privacy}","received_events_url":"https://api.github.com/users/jseminck/received_events","type":"User","site_admin":false},"repo":{"id":55704719,"name":"eslint-plugin-react","full_name":"jseminck/eslint-plugin-react","owner":{"login":"jseminck","id":9586897,"avatar_url":"https://avatars.githubusercontent.com/u/9586897?v=3","gravatar_id":"","url":"https://api.github.com/users/jseminck","html_url":"https://github.com/jseminck","followers_url":"https://api.github.com/users/jseminck/followers","following_url":"https://api.github.com/users/jseminck/following{/other_user}","gists_url":"https://api.github.com/users/jseminck/gists{/gist_id}","starred_url":"https://api.github.com/users/jseminck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jseminck/subscriptions","organizations_url":"https://api.github.com/users/jseminck/orgs","repos_url":"https://api.github.com/users/jseminck/repos","events_url":"https://api.github.com/users/jseminck/events{/privacy}","received_events_url":"https://api.github.com/users/jseminck/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jseminck/eslint-plugin-react","description":"React specific linting rules for ESLint","fork":true,"url":"https://api.github.com/repos/jseminck/eslint-plugin-react","forks_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/forks","keys_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/teams","hooks_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/hooks","issue_events_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/issues/events{/number}","events_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/events","assignees_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/assignees{/user}","branches_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/branches{/branch}","tags_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/tags","blobs_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/statuses/{sha}","languages_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/languages","stargazers_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/stargazers","contributors_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/contributors","subscribers_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/subscribers","subscription_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/subscription","commits_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/contents/{+path}","compare_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/merges","archive_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/downloads","issues_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/issues{/number}","pulls_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/pulls{/number}","milestones_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/milestones{/number}","notifications_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/labels{/name}","releases_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/releases{/id}","deployments_url":"https://api.github.com/repos/jseminck/eslint-plugin-react/deployments","created_at":"2016-04-07T15:12:28Z","updated_at":"2016-04-07T15:12:29Z","pushed_at":"2016-04-08T12:12:21Z","git_url":"git://github.com/jseminck/eslint-plugin-react.git","ssh_url":"git@github.com:jseminck/eslint-plugin-react.git","clone_url":"https://github.com/jseminck/eslint-plugin-react.git","svn_url":"https://github.com/jseminck/eslint-plugin-react","homepage":null,"size":816,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yannickcr:master","ref":"master","sha":"0efb7ad6f1646ef4686d437538f0ba2ff3b217d8","user":{"login":"yannickcr","id":13209,"avatar_url":"https://avatars.githubusercontent.com/u/13209?v=3","gravatar_id":"","url":"https://api.github.com/users/yannickcr","html_url":"https://github.com/yannickcr","followers_url":"https://api.github.com/users/yannickcr/followers","following_url":"https://api.github.com/users/yannickcr/following{/other_user}","gists_url":"https://api.github.com/users/yannickcr/gists{/gist_id}","starred_url":"https://api.github.com/users/yannickcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannickcr/subscriptions","organizations_url":"https://api.github.com/users/yannickcr/orgs","repos_url":"https://api.github.com/users/yannickcr/repos","events_url":"https://api.github.com/users/yannickcr/events{/privacy}","received_events_url":"https://api.github.com/users/yannickcr/received_events","type":"User","site_admin":false},"repo":{"id":28061676,"name":"eslint-plugin-react","full_name":"yannickcr/eslint-plugin-react","owner":{"login":"yannickcr","id":13209,"avatar_url":"https://avatars.githubusercontent.com/u/13209?v=3","gravatar_id":"","url":"https://api.github.com/users/yannickcr","html_url":"https://github.com/yannickcr","followers_url":"https://api.github.com/users/yannickcr/followers","following_url":"https://api.github.com/users/yannickcr/following{/other_user}","gists_url":"https://api.github.com/users/yannickcr/gists{/gist_id}","starred_url":"https://api.github.com/users/yannickcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannickcr/subscriptions","organizations_url":"https://api.github.com/users/yannickcr/orgs","repos_url":"https://api.github.com/users/yannickcr/repos","events_url":"https://api.github.com/users/yannickcr/events{/privacy}","received_events_url":"https://api.github.com/users/yannickcr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yannickcr/eslint-plugin-react","description":"React specific linting rules for ESLint","fork":false,"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react","forks_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/forks","keys_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/teams","hooks_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/hooks","issue_events_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/events{/number}","events_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/events","assignees_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/assignees{/user}","branches_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/branches{/branch}","tags_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/tags","blobs_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/statuses/{sha}","languages_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/languages","stargazers_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/stargazers","contributors_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/contributors","subscribers_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/subscribers","subscription_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/subscription","commits_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/contents/{+path}","compare_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/merges","archive_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/downloads","issues_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues{/number}","pulls_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/pulls{/number}","milestones_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/milestones{/number}","notifications_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/labels{/name}","releases_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/releases{/id}","deployments_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/deployments","created_at":"2014-12-15T23:44:14Z","updated_at":"2016-04-08T10:59:08Z","pushed_at":"2016-04-08T12:21:21Z","git_url":"git://github.com/yannickcr/eslint-plugin-react.git","ssh_url":"git@github.com:yannickcr/eslint-plugin-react.git","clone_url":"https://github.com/yannickcr/eslint-plugin-react.git","svn_url":"https://github.com/yannickcr/eslint-plugin-react","homepage":null,"size":880,"stargazers_count":1121,"watchers_count":1121,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":169,"mirror_url":null,"open_issues_count":95,"forks":169,"open_issues":95,"watchers":1121,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yannickcr/eslint-plugin-react/pulls/537"},"html":{"href":"https://github.com/yannickcr/eslint-plugin-react/pull/537"},"issue":{"href":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/537"},"comments":{"href":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/537/comments"},"review_comments":{"href":"https://api.github.com/repos/yannickcr/eslint-plugin-react/pulls/537/comments"},"review_comment":{"href":"https://api.github.com/repos/yannickcr/eslint-plugin-react/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yannickcr/eslint-plugin-react/pulls/537/commits"},"statuses":{"href":"https://api.github.com/repos/yannickcr/eslint-plugin-react/statuses/39c21e63b23a7577a9ad9ecfa0decce815b1c63a"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":445,"deletions":1,"changed_files":8}}