{"action":"created","issue":{"url":"https://api.github.com/repos/codeclimate/codeclimate-eslint/issues/39","labels_url":"https://api.github.com/repos/codeclimate/codeclimate-eslint/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/codeclimate/codeclimate-eslint/issues/39/comments","events_url":"https://api.github.com/repos/codeclimate/codeclimate-eslint/issues/39/events","html_url":"https://github.com/codeclimate/codeclimate-eslint/pull/39","id":111946391,"number":39,"title":"Add content for issues","user":{"login":"ABaldwinHunter","id":8718443,"avatar_url":"https://avatars.githubusercontent.com/u/8718443?v=3","gravatar_id":"","url":"https://api.github.com/users/ABaldwinHunter","html_url":"https://github.com/ABaldwinHunter","followers_url":"https://api.github.com/users/ABaldwinHunter/followers","following_url":"https://api.github.com/users/ABaldwinHunter/following{/other_user}","gists_url":"https://api.github.com/users/ABaldwinHunter/gists{/gist_id}","starred_url":"https://api.github.com/users/ABaldwinHunter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ABaldwinHunter/subscriptions","organizations_url":"https://api.github.com/users/ABaldwinHunter/orgs","repos_url":"https://api.github.com/users/ABaldwinHunter/repos","events_url":"https://api.github.com/users/ABaldwinHunter/events{/privacy}","received_events_url":"https://api.github.com/users/ABaldwinHunter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-17T06:05:16Z","updated_at":"2015-10-20T17:04:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/codeclimate/codeclimate-eslint/pulls/39","html_url":"https://github.com/codeclimate/codeclimate-eslint/pull/39","diff_url":"https://github.com/codeclimate/codeclimate-eslint/pull/39.diff","patch_url":"https://github.com/codeclimate/codeclimate-eslint/pull/39.patch"},"body":"Once ESLint is updated to return a `docs` object containing rule\r\nname and doc content:\r\n(PR: https://github.com/codeclimate/eslint/commit/52701b16a36924df16705266992ef4585a36ea25)\r\nwe can easily access that data for issue content.\r\n\r\nESLint rule markdown docs here:\r\nhttps://github.com/eslint/eslint/tree/master/docs/rules\r\n\r\nIf no doc is found, the content defaults to a suggestion to\r\nread more at Source: http://eslint.org/docs/rules/\r\n\r\ncc @codeclimate/review @mrb @jpignata "},"comment":{"url":"https://api.github.com/repos/codeclimate/codeclimate-eslint/issues/comments/149634432","html_url":"https://github.com/codeclimate/codeclimate-eslint/pull/39#issuecomment-149634432","issue_url":"https://api.github.com/repos/codeclimate/codeclimate-eslint/issues/39","id":149634432,"user":{"login":"GordonDiggs","id":245083,"avatar_url":"https://avatars.githubusercontent.com/u/245083?v=3","gravatar_id":"","url":"https://api.github.com/users/GordonDiggs","html_url":"https://github.com/GordonDiggs","followers_url":"https://api.github.com/users/GordonDiggs/followers","following_url":"https://api.github.com/users/GordonDiggs/following{/other_user}","gists_url":"https://api.github.com/users/GordonDiggs/gists{/gist_id}","starred_url":"https://api.github.com/users/GordonDiggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GordonDiggs/subscriptions","organizations_url":"https://api.github.com/users/GordonDiggs/orgs","repos_url":"https://api.github.com/users/GordonDiggs/repos","events_url":"https://api.github.com/users/GordonDiggs/events{/privacy}","received_events_url":"https://api.github.com/users/GordonDiggs/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T17:04:22Z","updated_at":"2015-10-20T17:04:22Z","body":"Sample json:\r\n\r\n```json\r\n{  \r\n  \"type\":\"issue\",\r\n  \"categories\":[  \r\n    \"Style\"\r\n  ],\r\n  \"check_name\":\"no-undef\",\r\n  \"description\":\"\\\"module\\\" is not defined.\",\r\n  \"content\":\"# Disallow Undeclared Variables (no-undef)\\n\\nAny reference to an undeclared variable causes a warning, unless the variable is explicitly mentioned in a `/*global ...*/` comment. This rule provides compatibility with [JSHint](http://www.jshint.com)'s and [JSLint](http://www.jslint.com)'s treatment of global variables.\\n\\nThis rule can help you locate potential ReferenceErrors resulting from misspellings of variable and parameter names, or accidental implicit globals (for example, from forgetting the `var` keyword in a `for` loop initializer).\\n\\n## Rule Details\\n\\nThe following code causes 2 warnings, as the globals `someFunction` and `b` have not been declared.\\n\\n```js\\n/*eslint no-undef: 2*/\\n\\nvar a = someFunction();  /*error \\\"someFunction\\\" is not defined.*/\\nb = 10;                  /*error \\\"b\\\" is not defined.*/\\n```\\n\\nIn this code, no warnings are generated, since the global variables have been properly declared in a `/*global */` block.\\n\\n```js\\n/*global someFunction b:true*/\\n/*eslint no-undef: 2*/\\n\\nvar a = someFunction();\\nb = 10;\\n```\\n\\nBy default, variables declared in `/*global */` are considered read-only. Assignment to a read-only global causes a warning:\\n\\n```js\\n/*global b*/\\n/*eslint no-undef: 2*/\\n\\n\\nb = 10;                  /*error \\\"b\\\" is read only.*/\\n```\\n\\nUse the `variable:true` syntax to indicate that a variable can be assigned to.\\n\\n```js\\n/*global b:true*/\\n/*eslint no-undef: 2*/\\n\\nb = 10;\\n```\\n\\nExplicitly checking an undefined identifier with `typeof` causes no warning.\\n\\n```js\\n/*eslint no-undef: 2*/\\n\\nif (typeof UndefinedIdentifier === \\\"undefined\\\") {\\n    // do something ...\\n}\\n```\\n\\n## Environments\\n\\nFor convenience, ESLint provides shortcuts that pre-define global variables exposed by popular libraries and runtime environments. This rule supports these environments, as listed in [Specifying Environments](http://eslint.org/docs/user-guide/configuring#specifying-environments).  A few examples are given below.\\n\\n### browser\\n\\nDefines common browser globals.\\n\\n```js\\n/*eslint-env browser*/\\n\\nsetTimeout(function() {\\n    alert(\\\"Hello\\\");\\n});\\n```\\n\\n### node\\n\\nDefines globals for Node.js development.\\n\\n```js\\n/*eslint-env node*/\\n\\nvar fs = require(\\\"fs\\\");\\nmodule.exports = function() {\\n    console.log(fs);\\n};\\n```\\n\\n## When Not To Use It\\n\\nIf explicit declaration of global variables is not to your taste.\\n\\n## Further Reading\\n\\n* ['{a}' is not defined](http://jslinterrors.com/a-is-not-defined)\\nSource: http://eslint.org/docs/rules/\\n\",\r\n  \"location\":{  \r\n    \"path\":\"src/JSXView.jsx\",\r\n    \"positions\":{  \r\n      \"begin\":{  \r\n        \"line\":205,\r\n        \"column\":1\r\n      },\r\n      \"end\":{  \r\n        \"line\":205,\r\n        \"column\":1\r\n      }\r\n    }\r\n  },\r\n  \"remediation_points\":50000,\r\n  \"engine_name\":\"eslint\"\r\n}\r\n```"}}