{"action":"created","issue":{"url":"https://api.github.com/repos/SharePoint/sp-dev-docs/issues/27","repository_url":"https://api.github.com/repos/SharePoint/sp-dev-docs","labels_url":"https://api.github.com/repos/SharePoint/sp-dev-docs/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/SharePoint/sp-dev-docs/issues/27/comments","events_url":"https://api.github.com/repos/SharePoint/sp-dev-docs/issues/27/events","html_url":"https://github.com/SharePoint/sp-dev-docs/issues/27","id":172108636,"number":27,"title":"tslint to strict for React components","user":{"login":"estruyf","id":2900833,"avatar_url":"https://avatars.githubusercontent.com/u/2900833?v=3","gravatar_id":"","url":"https://api.github.com/users/estruyf","html_url":"https://github.com/estruyf","followers_url":"https://api.github.com/users/estruyf/followers","following_url":"https://api.github.com/users/estruyf/following{/other_user}","gists_url":"https://api.github.com/users/estruyf/gists{/gist_id}","starred_url":"https://api.github.com/users/estruyf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estruyf/subscriptions","organizations_url":"https://api.github.com/users/estruyf/orgs","repos_url":"https://api.github.com/users/estruyf/repos","events_url":"https://api.github.com/users/estruyf/events{/privacy}","received_events_url":"https://api.github.com/users/estruyf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SharePoint/sp-dev-docs/labels/bug","name":"bug","color":"ee0701"},{"url":"https://api.github.com/repos/SharePoint/sp-dev-docs/labels/Tooling","name":"Tooling","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"nickpape-msft","id":17131271,"avatar_url":"https://avatars.githubusercontent.com/u/17131271?v=3","gravatar_id":"","url":"https://api.github.com/users/nickpape-msft","html_url":"https://github.com/nickpape-msft","followers_url":"https://api.github.com/users/nickpape-msft/followers","following_url":"https://api.github.com/users/nickpape-msft/following{/other_user}","gists_url":"https://api.github.com/users/nickpape-msft/gists{/gist_id}","starred_url":"https://api.github.com/users/nickpape-msft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickpape-msft/subscriptions","organizations_url":"https://api.github.com/users/nickpape-msft/orgs","repos_url":"https://api.github.com/users/nickpape-msft/repos","events_url":"https://api.github.com/users/nickpape-msft/events{/privacy}","received_events_url":"https://api.github.com/users/nickpape-msft/received_events","type":"User","site_admin":false},"assignees":[{"login":"nickpape-msft","id":17131271,"avatar_url":"https://avatars.githubusercontent.com/u/17131271?v=3","gravatar_id":"","url":"https://api.github.com/users/nickpape-msft","html_url":"https://github.com/nickpape-msft","followers_url":"https://api.github.com/users/nickpape-msft/followers","following_url":"https://api.github.com/users/nickpape-msft/following{/other_user}","gists_url":"https://api.github.com/users/nickpape-msft/gists{/gist_id}","starred_url":"https://api.github.com/users/nickpape-msft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickpape-msft/subscriptions","organizations_url":"https://api.github.com/users/nickpape-msft/orgs","repos_url":"https://api.github.com/users/nickpape-msft/repos","events_url":"https://api.github.com/users/nickpape-msft/events{/privacy}","received_events_url":"https://api.github.com/users/nickpape-msft/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-08-19T11:11:29Z","updated_at":"2016-08-22T06:48:52Z","closed_at":null,"body":"If you want to add one of the lifecycle methods to the React component you get the following TSLint error during the build: `error no-unused-variable: unused variable: 'componentWillMount'`.\r\n\r\nI solved it by adding `/* tslint:disable:no-unused-variable */` to the component.\r\n\r\n```TypeScript\r\n/* tslint:disable:no-unused-variable */\r\nimport * as React from 'react';\r\n/* tslint:disable:no-unused-variable */\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/SharePoint/sp-dev-docs/issues/comments/241327590","html_url":"https://github.com/SharePoint/sp-dev-docs/issues/27#issuecomment-241327590","issue_url":"https://api.github.com/repos/SharePoint/sp-dev-docs/issues/27","id":241327590,"user":{"login":"estruyf","id":2900833,"avatar_url":"https://avatars.githubusercontent.com/u/2900833?v=3","gravatar_id":"","url":"https://api.github.com/users/estruyf","html_url":"https://github.com/estruyf","followers_url":"https://api.github.com/users/estruyf/followers","following_url":"https://api.github.com/users/estruyf/following{/other_user}","gists_url":"https://api.github.com/users/estruyf/gists{/gist_id}","starred_url":"https://api.github.com/users/estruyf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estruyf/subscriptions","organizations_url":"https://api.github.com/users/estruyf/orgs","repos_url":"https://api.github.com/users/estruyf/repos","events_url":"https://api.github.com/users/estruyf/events{/privacy}","received_events_url":"https://api.github.com/users/estruyf/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T06:48:52Z","updated_at":"2016-08-22T06:48:52Z","body":"@iclanton the component I'm loading doesn't contain a `componentWillMount` function. The one where I'm using this code does (and marking it as public or private gives the same message). This is just a warning, so it builds perfectly.\r\n\r\nWhen I'm changing it to a lowercase const. It won't build: `Property 'crntComponent' does not exist on type 'JSX.IntrinsicElements'`."}}
{"actor":{"display_login":"estruyf"}}