{"action":"created","comment":{"url":"https://api.github.com/repos/benmosher/eslint-plugin-import/pulls/comments/62006902","id":62006902,"diff_hunk":"@@ -89,3 +91,48 @@ You can set the options like this:\n ```js\n \"import/order\": [\"error\", {\"groups\": [\"index\", \"sibling\", \"parent\", \"internal\", \"external\", \"builtin\"]}]\n ```\n+\n+### `newlines-between: [always|never]`:\n+\n+\n+Enforces or forbids new lines between import groups:\n+\n+- If omitted, assertion messages will be neither enforced nor forbidden.\n+- If set to `always`, a new line between each group will be enforced, and new lines inside a group will be forbidden.\n+- If set to `never`, no new lines are allowed in the entire import section.\n+\n+For default group setting those will be valid:\n+\n+```js\n+/* eslint import/order: [\"error\", {\"newlines-between\": \"always\"}] */\n+var fs = require('fs');\n+\n+var index = require('./');\n+\n+var sibling = require('./foo');\n+```\n+\n+```js\n+/* eslint import/order: [\"error\", {\"newlines-between\": \"never\"}] */\n+var fs = require('fs');\n+var index = require('./');\n+var sibling = require('./foo');\n+```\n+\n+while those will be invalid:","path":"docs/rules/order.md","position":43,"original_position":43,"commit_id":"1c096e83f1ddd332e5dc445a239d0c6007c03d16","original_commit_id":"1c096e83f1ddd332e5dc445a239d0c6007c03d16","user":{"login":"jfmengels","id":3869412,"avatar_url":"https://avatars.githubusercontent.com/u/3869412?v=3","gravatar_id":"","url":"https://api.github.com/users/jfmengels","html_url":"https://github.com/jfmengels","followers_url":"https://api.github.com/users/jfmengels/followers","following_url":"https://api.github.com/users/jfmengels/following{/other_user}","gists_url":"https://api.github.com/users/jfmengels/gists{/gist_id}","starred_url":"https://api.github.com/users/jfmengels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfmengels/subscriptions","organizations_url":"https://api.github.com/users/jfmengels/orgs","repos_url":"https://api.github.com/users/jfmengels/repos","events_url":"https://api.github.com/users/jfmengels/events{/privacy}","received_events_url":"https://api.github.com/users/jfmengels/received_events","type":"User","site_admin":false},"body":"`while the following will be invalid:`\r\n\r\nActually, if you could swap both sections, the invalid example is always (afaik) put before the valid section.","created_at":"2016-05-04T08:47:50Z","updated_at":"2016-05-04T08:47:50Z","html_url":"https://github.com/benmosher/eslint-plugin-import/pull/298#discussion_r62006902","pull_request_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/pulls/298","_links":{"self":{"href":"https://api.github.com/repos/benmosher/eslint-plugin-import/pulls/comments/62006902"},"html":{"href":"https://github.com/benmosher/eslint-plugin-import/pull/298#discussion_r62006902"},"pull_request":{"href":"https://api.github.com/repos/benmosher/eslint-plugin-import/pulls/298"}}},"pull_request":{"url":"https://api.github.com/repos/benmosher/eslint-plugin-import/pulls/298","id":68560543,"html_url":"https://github.com/benmosher/eslint-plugin-import/pull/298","diff_url":"https://github.com/benmosher/eslint-plugin-import/pull/298.diff","patch_url":"https://github.com/benmosher/eslint-plugin-import/pull/298.patch","issue_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/298","number":298,"state":"open","locked":false,"title":"Add `newlines-between` option to `order` rule","user":{"login":"singles","id":218345,"avatar_url":"https://avatars.githubusercontent.com/u/218345?v=3","gravatar_id":"","url":"https://api.github.com/users/singles","html_url":"https://github.com/singles","followers_url":"https://api.github.com/users/singles/followers","following_url":"https://api.github.com/users/singles/following{/other_user}","gists_url":"https://api.github.com/users/singles/gists{/gist_id}","starred_url":"https://api.github.com/users/singles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/singles/subscriptions","organizations_url":"https://api.github.com/users/singles/orgs","repos_url":"https://api.github.com/users/singles/repos","events_url":"https://api.github.com/users/singles/events{/privacy}","received_events_url":"https://api.github.com/users/singles/received_events","type":"User","site_admin":false},"body":"Checks existence of new lines between and inside import groups.\r\n\r\nImplements #282.","created_at":"2016-05-02T13:34:51Z","updated_at":"2016-05-04T08:47:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82c2ee7c56c564a4f5470cb9f80d6c5f598b1a1a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/pulls/298/commits","review_comments_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/pulls/298/comments","review_comment_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/pulls/comments{/number}","comments_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/298/comments","statuses_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/statuses/1c096e83f1ddd332e5dc445a239d0c6007c03d16","head":{"label":"singles:order-option-newlines-between","ref":"order-option-newlines-between","sha":"1c096e83f1ddd332e5dc445a239d0c6007c03d16","user":{"login":"singles","id":218345,"avatar_url":"https://avatars.githubusercontent.com/u/218345?v=3","gravatar_id":"","url":"https://api.github.com/users/singles","html_url":"https://github.com/singles","followers_url":"https://api.github.com/users/singles/followers","following_url":"https://api.github.com/users/singles/following{/other_user}","gists_url":"https://api.github.com/users/singles/gists{/gist_id}","starred_url":"https://api.github.com/users/singles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/singles/subscriptions","organizations_url":"https://api.github.com/users/singles/orgs","repos_url":"https://api.github.com/users/singles/repos","events_url":"https://api.github.com/users/singles/events{/privacy}","received_events_url":"https://api.github.com/users/singles/received_events","type":"User","site_admin":false},"repo":{"id":55622315,"name":"eslint-plugin-import","full_name":"singles/eslint-plugin-import","owner":{"login":"singles","id":218345,"avatar_url":"https://avatars.githubusercontent.com/u/218345?v=3","gravatar_id":"","url":"https://api.github.com/users/singles","html_url":"https://github.com/singles","followers_url":"https://api.github.com/users/singles/followers","following_url":"https://api.github.com/users/singles/following{/other_user}","gists_url":"https://api.github.com/users/singles/gists{/gist_id}","starred_url":"https://api.github.com/users/singles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/singles/subscriptions","organizations_url":"https://api.github.com/users/singles/orgs","repos_url":"https://api.github.com/users/singles/repos","events_url":"https://api.github.com/users/singles/events{/privacy}","received_events_url":"https://api.github.com/users/singles/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/singles/eslint-plugin-import","description":"ESLint plugin with rules that help validate proper imports.","fork":true,"url":"https://api.github.com/repos/singles/eslint-plugin-import","forks_url":"https://api.github.com/repos/singles/eslint-plugin-import/forks","keys_url":"https://api.github.com/repos/singles/eslint-plugin-import/keys{/key_id}","collaborators_url":"https://api.github.com/repos/singles/eslint-plugin-import/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/singles/eslint-plugin-import/teams","hooks_url":"https://api.github.com/repos/singles/eslint-plugin-import/hooks","issue_events_url":"https://api.github.com/repos/singles/eslint-plugin-import/issues/events{/number}","events_url":"https://api.github.com/repos/singles/eslint-plugin-import/events","assignees_url":"https://api.github.com/repos/singles/eslint-plugin-import/assignees{/user}","branches_url":"https://api.github.com/repos/singles/eslint-plugin-import/branches{/branch}","tags_url":"https://api.github.com/repos/singles/eslint-plugin-import/tags","blobs_url":"https://api.github.com/repos/singles/eslint-plugin-import/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/singles/eslint-plugin-import/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/singles/eslint-plugin-import/git/refs{/sha}","trees_url":"https://api.github.com/repos/singles/eslint-plugin-import/git/trees{/sha}","statuses_url":"https://api.github.com/repos/singles/eslint-plugin-import/statuses/{sha}","languages_url":"https://api.github.com/repos/singles/eslint-plugin-import/languages","stargazers_url":"https://api.github.com/repos/singles/eslint-plugin-import/stargazers","contributors_url":"https://api.github.com/repos/singles/eslint-plugin-import/contributors","subscribers_url":"https://api.github.com/repos/singles/eslint-plugin-import/subscribers","subscription_url":"https://api.github.com/repos/singles/eslint-plugin-import/subscription","commits_url":"https://api.github.com/repos/singles/eslint-plugin-import/commits{/sha}","git_commits_url":"https://api.github.com/repos/singles/eslint-plugin-import/git/commits{/sha}","comments_url":"https://api.github.com/repos/singles/eslint-plugin-import/comments{/number}","issue_comment_url":"https://api.github.com/repos/singles/eslint-plugin-import/issues/comments{/number}","contents_url":"https://api.github.com/repos/singles/eslint-plugin-import/contents/{+path}","compare_url":"https://api.github.com/repos/singles/eslint-plugin-import/compare/{base}...{head}","merges_url":"https://api.github.com/repos/singles/eslint-plugin-import/merges","archive_url":"https://api.github.com/repos/singles/eslint-plugin-import/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/singles/eslint-plugin-import/downloads","issues_url":"https://api.github.com/repos/singles/eslint-plugin-import/issues{/number}","pulls_url":"https://api.github.com/repos/singles/eslint-plugin-import/pulls{/number}","milestones_url":"https://api.github.com/repos/singles/eslint-plugin-import/milestones{/number}","notifications_url":"https://api.github.com/repos/singles/eslint-plugin-import/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/singles/eslint-plugin-import/labels{/name}","releases_url":"https://api.github.com/repos/singles/eslint-plugin-import/releases{/id}","deployments_url":"https://api.github.com/repos/singles/eslint-plugin-import/deployments","created_at":"2016-04-06T16:28:53Z","updated_at":"2016-04-06T16:28:54Z","pushed_at":"2016-05-04T08:32:34Z","git_url":"git://github.com/singles/eslint-plugin-import.git","ssh_url":"git@github.com:singles/eslint-plugin-import.git","clone_url":"https://github.com/singles/eslint-plugin-import.git","svn_url":"https://github.com/singles/eslint-plugin-import","homepage":null,"size":640,"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":"benmosher:master","ref":"master","sha":"73164f8093d7f6a7fe28c1b6381e852e0064b685","user":{"login":"benmosher","id":3709196,"avatar_url":"https://avatars.githubusercontent.com/u/3709196?v=3","gravatar_id":"","url":"https://api.github.com/users/benmosher","html_url":"https://github.com/benmosher","followers_url":"https://api.github.com/users/benmosher/followers","following_url":"https://api.github.com/users/benmosher/following{/other_user}","gists_url":"https://api.github.com/users/benmosher/gists{/gist_id}","starred_url":"https://api.github.com/users/benmosher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benmosher/subscriptions","organizations_url":"https://api.github.com/users/benmosher/orgs","repos_url":"https://api.github.com/users/benmosher/repos","events_url":"https://api.github.com/users/benmosher/events{/privacy}","received_events_url":"https://api.github.com/users/benmosher/received_events","type":"User","site_admin":false},"repo":{"id":32238354,"name":"eslint-plugin-import","full_name":"benmosher/eslint-plugin-import","owner":{"login":"benmosher","id":3709196,"avatar_url":"https://avatars.githubusercontent.com/u/3709196?v=3","gravatar_id":"","url":"https://api.github.com/users/benmosher","html_url":"https://github.com/benmosher","followers_url":"https://api.github.com/users/benmosher/followers","following_url":"https://api.github.com/users/benmosher/following{/other_user}","gists_url":"https://api.github.com/users/benmosher/gists{/gist_id}","starred_url":"https://api.github.com/users/benmosher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benmosher/subscriptions","organizations_url":"https://api.github.com/users/benmosher/orgs","repos_url":"https://api.github.com/users/benmosher/repos","events_url":"https://api.github.com/users/benmosher/events{/privacy}","received_events_url":"https://api.github.com/users/benmosher/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benmosher/eslint-plugin-import","description":"ESLint plugin with rules that help validate proper imports.","fork":false,"url":"https://api.github.com/repos/benmosher/eslint-plugin-import","forks_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/forks","keys_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/teams","hooks_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/hooks","issue_events_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/events{/number}","events_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/events","assignees_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/assignees{/user}","branches_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/branches{/branch}","tags_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/tags","blobs_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/git/refs{/sha}","trees_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/statuses/{sha}","languages_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/languages","stargazers_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/stargazers","contributors_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/contributors","subscribers_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/subscribers","subscription_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/subscription","commits_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/commits{/sha}","git_commits_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/git/commits{/sha}","comments_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/comments{/number}","issue_comment_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/comments{/number}","contents_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/contents/{+path}","compare_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/merges","archive_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/downloads","issues_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues{/number}","pulls_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/pulls{/number}","milestones_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/milestones{/number}","notifications_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/labels{/name}","releases_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/releases{/id}","deployments_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/deployments","created_at":"2015-03-15T00:21:57Z","updated_at":"2016-05-03T05:23:57Z","pushed_at":"2016-05-04T08:32:34Z","git_url":"git://github.com/benmosher/eslint-plugin-import.git","ssh_url":"git@github.com:benmosher/eslint-plugin-import.git","clone_url":"https://github.com/benmosher/eslint-plugin-import.git","svn_url":"https://github.com/benmosher/eslint-plugin-import","homepage":null,"size":719,"stargazers_count":215,"watchers_count":215,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":46,"forks":32,"open_issues":46,"watchers":215,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/benmosher/eslint-plugin-import/pulls/298"},"html":{"href":"https://github.com/benmosher/eslint-plugin-import/pull/298"},"issue":{"href":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/298"},"comments":{"href":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/298/comments"},"review_comments":{"href":"https://api.github.com/repos/benmosher/eslint-plugin-import/pulls/298/comments"},"review_comment":{"href":"https://api.github.com/repos/benmosher/eslint-plugin-import/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/benmosher/eslint-plugin-import/pulls/298/commits"},"statuses":{"href":"https://api.github.com/repos/benmosher/eslint-plugin-import/statuses/1c096e83f1ddd332e5dc445a239d0c6007c03d16"}}}}