{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/xo/issues/119","repository_url":"https://api.github.com/repos/sindresorhus/xo","labels_url":"https://api.github.com/repos/sindresorhus/xo/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/xo/issues/119/comments","events_url":"https://api.github.com/repos/sindresorhus/xo/issues/119/events","html_url":"https://github.com/sindresorhus/xo/issues/119","id":157304634,"number":119,"title":"Issue with new-cap rule with yeoman-test","user":{"login":"sondr3","id":2280539,"avatar_url":"https://avatars.githubusercontent.com/u/2280539?v=3","gravatar_id":"","url":"https://api.github.com/users/sondr3","html_url":"https://github.com/sondr3","followers_url":"https://api.github.com/users/sondr3/followers","following_url":"https://api.github.com/users/sondr3/following{/other_user}","gists_url":"https://api.github.com/users/sondr3/gists{/gist_id}","starred_url":"https://api.github.com/users/sondr3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sondr3/subscriptions","organizations_url":"https://api.github.com/users/sondr3/orgs","repos_url":"https://api.github.com/users/sondr3/repos","events_url":"https://api.github.com/users/sondr3/events{/privacy}","received_events_url":"https://api.github.com/users/sondr3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-27T23:01:38Z","updated_at":"2016-05-27T23:27:41Z","closed_at":null,"body":"I'm currently using XO together with Yeoman and it's test libraries, however XO trips up on one of the asserts used by `yeoman-test` called `JSONFileContent` due to the `new-cap` rule.\r\n\r\n```sh\r\n\r\n  test/gulp.js:22:10\r\n  ✖  22:10  A function with a name starting with an uppercase letter should only be used as a constructor.  new-cap\r\n\r\n  test/uploading/aws.js:22:10\r\n  ✖  22:10  A function with a name starting with an uppercase letter should only be used as a constructor.  new-cap\r\n\r\n  test/uploading/rsync.js:22:10\r\n  ✖  22:10  A function with a name starting with an uppercase letter should only be used as a constructor.  new-cap\r\n\r\n  3 errors\r\n```\r\n\r\nBut there's nothing I can do about this other than override the global rule as far as I can tell because there's no way to ignore lines (which I think is a good thing). Thanks 😃 "},"comment":{"url":"https://api.github.com/repos/sindresorhus/xo/issues/comments/222274035","html_url":"https://github.com/sindresorhus/xo/issues/119#issuecomment-222274035","issue_url":"https://api.github.com/repos/sindresorhus/xo/issues/119","id":222274035,"user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T23:27:41Z","updated_at":"2016-05-27T23:27:41Z","body":"I would open an issue on `yeoman-test` about fixing the method name. It's common convention in JavaScript that `new`'able things are PascalCase and variables camelCase.\r\n\r\nYou can easily override it with `// eslint-disable-line` or `/* eslint-disable new-cap */` at the top of the file."}}
{"actor":{"display_login":"sindresorhus"}}