{"action":"opened","issue":{"url":"https://api.github.com/repos/vkbansal/eslint-plugin-jsx-control-statements/issues/19","repository_url":"https://api.github.com/repos/vkbansal/eslint-plugin-jsx-control-statements","labels_url":"https://api.github.com/repos/vkbansal/eslint-plugin-jsx-control-statements/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/vkbansal/eslint-plugin-jsx-control-statements/issues/19/comments","events_url":"https://api.github.com/repos/vkbansal/eslint-plugin-jsx-control-statements/issues/19/events","html_url":"https://github.com/vkbansal/eslint-plugin-jsx-control-statements/issues/19","id":230221657,"number":19,"title":"Extend jsx-jcs-no-undef to work with <With />","user":{"login":"martinmacko47","id":5547275,"avatar_url":"https://avatars2.githubusercontent.com/u/5547275?v=3","gravatar_id":"","url":"https://api.github.com/users/martinmacko47","html_url":"https://github.com/martinmacko47","followers_url":"https://api.github.com/users/martinmacko47/followers","following_url":"https://api.github.com/users/martinmacko47/following{/other_user}","gists_url":"https://api.github.com/users/martinmacko47/gists{/gist_id}","starred_url":"https://api.github.com/users/martinmacko47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinmacko47/subscriptions","organizations_url":"https://api.github.com/users/martinmacko47/orgs","repos_url":"https://api.github.com/users/martinmacko47/repos","events_url":"https://api.github.com/users/martinmacko47/events{/privacy}","received_events_url":"https://api.github.com/users/martinmacko47/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-21T13:41:25Z","updated_at":"2017-05-21T13:41:25Z","closed_at":null,"body":"We [have just added `<With />` statement](https://github.com/AlexGilleran/jsx-control-statements/pull/63) to [jsx-control-statements](https://github.com/AlexGilleran/jsx-control-statements). We need to extend [`jsx-jcs-no-undef`](https://github.com/vkbansal/eslint-plugin-jsx-control-statements/blob/master/docs/rules/jsx-jcs-no-undef.md) rule to work with variables declared by the new statement. I'll create a PR for it.\r\n\r\nUsage of the `With` statement:\r\n\r\n```jsx\r\n    <For each=\"item\" of={this.props.items}>\r\n      <With value={computeValue(item)}>\r\n        <Choose>\r\n          <When condition={item.path}>\r\n            <Link to={item.path}>{value}</Link>\r\n          </When>\r\n          <Otherwise>\r\n            {value}\r\n          </Otherwise>\r\n        </Choose>\r\n      </With>\r\n    </For>\r\n```"}}
{"actor":{"display_login":"martinmacko47"}}