{"action":"created","issue":{"url":"https://api.github.com/repos/MeirionHughes/aurelia-template-lint/issues/77","repository_url":"https://api.github.com/repos/MeirionHughes/aurelia-template-lint","labels_url":"https://api.github.com/repos/MeirionHughes/aurelia-template-lint/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/MeirionHughes/aurelia-template-lint/issues/77/comments","events_url":"https://api.github.com/repos/MeirionHughes/aurelia-template-lint/issues/77/events","html_url":"https://github.com/MeirionHughes/aurelia-template-lint/issues/77","id":170107831,"number":77,"title":"Static type check - overriding context","user":{"login":"MeirionHughes","id":3584509,"avatar_url":"https://avatars.githubusercontent.com/u/3584509?v=3","gravatar_id":"","url":"https://api.github.com/users/MeirionHughes","html_url":"https://github.com/MeirionHughes","followers_url":"https://api.github.com/users/MeirionHughes/followers","following_url":"https://api.github.com/users/MeirionHughes/following{/other_user}","gists_url":"https://api.github.com/users/MeirionHughes/gists{/gist_id}","starred_url":"https://api.github.com/users/MeirionHughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MeirionHughes/subscriptions","organizations_url":"https://api.github.com/users/MeirionHughes/orgs","repos_url":"https://api.github.com/users/MeirionHughes/repos","events_url":"https://api.github.com/users/MeirionHughes/events{/privacy}","received_events_url":"https://api.github.com/users/MeirionHughes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MeirionHughes/aurelia-template-lint/labels/bug","name":"bug","color":"ee0701"}],"state":"open","locked":false,"assignee":{"login":"MeirionHughes","id":3584509,"avatar_url":"https://avatars.githubusercontent.com/u/3584509?v=3","gravatar_id":"","url":"https://api.github.com/users/MeirionHughes","html_url":"https://github.com/MeirionHughes","followers_url":"https://api.github.com/users/MeirionHughes/followers","following_url":"https://api.github.com/users/MeirionHughes/following{/other_user}","gists_url":"https://api.github.com/users/MeirionHughes/gists{/gist_id}","starred_url":"https://api.github.com/users/MeirionHughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MeirionHughes/subscriptions","organizations_url":"https://api.github.com/users/MeirionHughes/orgs","repos_url":"https://api.github.com/users/MeirionHughes/repos","events_url":"https://api.github.com/users/MeirionHughes/events{/privacy}","received_events_url":"https://api.github.com/users/MeirionHughes/received_events","type":"User","site_admin":false},"assignees":[{"login":"MeirionHughes","id":3584509,"avatar_url":"https://avatars.githubusercontent.com/u/3584509?v=3","gravatar_id":"","url":"https://api.github.com/users/MeirionHughes","html_url":"https://github.com/MeirionHughes","followers_url":"https://api.github.com/users/MeirionHughes/followers","following_url":"https://api.github.com/users/MeirionHughes/following{/other_user}","gists_url":"https://api.github.com/users/MeirionHughes/gists{/gist_id}","starred_url":"https://api.github.com/users/MeirionHughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MeirionHughes/subscriptions","organizations_url":"https://api.github.com/users/MeirionHughes/orgs","repos_url":"https://api.github.com/users/MeirionHughes/repos","events_url":"https://api.github.com/users/MeirionHughes/events{/privacy}","received_events_url":"https://api.github.com/users/MeirionHughes/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/MeirionHughes/aurelia-template-lint/milestones/12","html_url":"https://github.com/MeirionHughes/aurelia-template-lint/milestones/0.9.x","labels_url":"https://api.github.com/repos/MeirionHughes/aurelia-template-lint/milestones/12/labels","id":1921862,"number":12,"title":"0.9.x","description":"bug fixes, non-breaking. ","creator":{"login":"MeirionHughes","id":3584509,"avatar_url":"https://avatars.githubusercontent.com/u/3584509?v=3","gravatar_id":"","url":"https://api.github.com/users/MeirionHughes","html_url":"https://github.com/MeirionHughes","followers_url":"https://api.github.com/users/MeirionHughes/followers","following_url":"https://api.github.com/users/MeirionHughes/following{/other_user}","gists_url":"https://api.github.com/users/MeirionHughes/gists{/gist_id}","starred_url":"https://api.github.com/users/MeirionHughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MeirionHughes/subscriptions","organizations_url":"https://api.github.com/users/MeirionHughes/orgs","repos_url":"https://api.github.com/users/MeirionHughes/repos","events_url":"https://api.github.com/users/MeirionHughes/events{/privacy}","received_events_url":"https://api.github.com/users/MeirionHughes/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":2,"state":"open","created_at":"2016-08-03T20:22:36Z","updated_at":"2016-08-09T08:21:54Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-08-09T08:21:16Z","updated_at":"2016-08-09T08:22:05Z","closed_at":null,"body":"@ppn2 commented on [Tue Aug 09 2016](https://github.com/MeirionHughes/gulp-aurelia-template-lint/issues/8)\n\nMany times while using slot and replaceable template, the target element might introduce overriding context. At this moment the linter does not recognize that.\r\n\r\nExample (I have omitted the view models for bravity)\r\n```\r\n--some-element.html\r\n<template>\r\n  <div repeat.for=\"item of items\">\r\n     <template replaceable part=\"item-template\">\r\n         ${item.itemName}\r\n      </template>\r\n  </div>\r\n</template>\r\n```\r\nUsage:\r\n```\r\n--main.html\r\n<template>\r\n  <some-element>\r\n    <template replace-part=\"item-template\">\r\n      <div style=\"color:blue\">${item.itemName}</div>\r\n    </template> \r\n  </some-element>\r\n</template>\r\n```\r\nIn this case linter will look for the item property in the main.ts and raise it as error. Similar behavior can be seen with the slots.\n\n"},"comment":{"url":"https://api.github.com/repos/MeirionHughes/aurelia-template-lint/issues/comments/238486090","html_url":"https://github.com/MeirionHughes/aurelia-template-lint/issues/77#issuecomment-238486090","issue_url":"https://api.github.com/repos/MeirionHughes/aurelia-template-lint/issues/77","id":238486090,"user":{"login":"MeirionHughes","id":3584509,"avatar_url":"https://avatars.githubusercontent.com/u/3584509?v=3","gravatar_id":"","url":"https://api.github.com/users/MeirionHughes","html_url":"https://github.com/MeirionHughes","followers_url":"https://api.github.com/users/MeirionHughes/followers","following_url":"https://api.github.com/users/MeirionHughes/following{/other_user}","gists_url":"https://api.github.com/users/MeirionHughes/gists{/gist_id}","starred_url":"https://api.github.com/users/MeirionHughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MeirionHughes/subscriptions","organizations_url":"https://api.github.com/users/MeirionHughes/orgs","repos_url":"https://api.github.com/users/MeirionHughes/repos","events_url":"https://api.github.com/users/MeirionHughes/events{/privacy}","received_events_url":"https://api.github.com/users/MeirionHughes/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T08:22:05Z","updated_at":"2016-08-09T08:22:05Z","body":"Needs triage"}}
{"actor":{"display_login":"MeirionHughes"}}