{"action":"created","issue":{"url":"https://api.github.com/repos/jsbench/jsbench.github.io/issues/5","labels_url":"https://api.github.com/repos/jsbench/jsbench.github.io/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/jsbench/jsbench.github.io/issues/5/comments","events_url":"https://api.github.com/repos/jsbench/jsbench.github.io/issues/5/events","html_url":"https://github.com/jsbench/jsbench.github.io/pull/5","id":120062931,"number":5,"title":"Linting v.2","user":{"login":"nicksp","id":579331,"avatar_url":"https://avatars.githubusercontent.com/u/579331?v=3","gravatar_id":"","url":"https://api.github.com/users/nicksp","html_url":"https://github.com/nicksp","followers_url":"https://api.github.com/users/nicksp/followers","following_url":"https://api.github.com/users/nicksp/following{/other_user}","gists_url":"https://api.github.com/users/nicksp/gists{/gist_id}","starred_url":"https://api.github.com/users/nicksp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicksp/subscriptions","organizations_url":"https://api.github.com/users/nicksp/orgs","repos_url":"https://api.github.com/users/nicksp/repos","events_url":"https://api.github.com/users/nicksp/events{/privacy}","received_events_url":"https://api.github.com/users/nicksp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-02T23:55:03Z","updated_at":"2015-12-03T13:51:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jsbench/jsbench.github.io/pulls/5","html_url":"https://github.com/jsbench/jsbench.github.io/pull/5","diff_url":"https://github.com/jsbench/jsbench.github.io/pull/5.diff","patch_url":"https://github.com/jsbench/jsbench.github.io/pull/5.patch"},"body":"Более-менее финальный линт для проекта.\r\n\r\nЯ перебрал каждую опцию, поигрался с каждым параметром.\r\nПостарался сделать конфиг согласно рекомендациям airbnb.\r\n\r\nИнструмент действительно крутой. Позволяет столько всего проверять -- очень гибкий и настраиваемый. Довольно [подробная документация](http://eslint.org/docs/rules/) со множеством примеров и чистый консольный вывод. Видно какой параметр зафейлился и где.\r\n\r\nТакже можно задавать уровень ошибки и тонкую подстройку опции: 0 (off), 1 (warning) или 2 (critical error).\r\n\r\nКроме этого почистил package.json: удалил неиспользуемые модули.\r\n\r\nПоправил сразу сорцы согласно логу. Надеюсь, не зачмыришь :)\r\n\r\n**P.S.** Если запустишь gulp lint, то увидишь 2 ворнинга ( `vars-on-top` и `no-undefined`). Оставил преднамеренно, чтобы ты поправил как надо: либо отключить проверку совсем, либо изменить в коде.\r\n\r\n**P.P.S.** Опции, специфичные для ES6, добавлю в следующем Пул Реквесте, где буду заниматься переводом проекта на ES6 и сборкой бандла (предположительно четверг-пятница)."},"comment":{"url":"https://api.github.com/repos/jsbench/jsbench.github.io/issues/comments/161645434","html_url":"https://github.com/jsbench/jsbench.github.io/pull/5#issuecomment-161645434","issue_url":"https://api.github.com/repos/jsbench/jsbench.github.io/issues/5","id":161645434,"user":{"login":"RubaXa","id":1109562,"avatar_url":"https://avatars.githubusercontent.com/u/1109562?v=3","gravatar_id":"","url":"https://api.github.com/users/RubaXa","html_url":"https://github.com/RubaXa","followers_url":"https://api.github.com/users/RubaXa/followers","following_url":"https://api.github.com/users/RubaXa/following{/other_user}","gists_url":"https://api.github.com/users/RubaXa/gists{/gist_id}","starred_url":"https://api.github.com/users/RubaXa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubaXa/subscriptions","organizations_url":"https://api.github.com/users/RubaXa/orgs","repos_url":"https://api.github.com/users/RubaXa/repos","events_url":"https://api.github.com/users/RubaXa/events{/privacy}","received_events_url":"https://api.github.com/users/RubaXa/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T13:51:26Z","updated_at":"2015-12-03T13:51:26Z","body":"Отлично, поправь только объявления, слишком высоко унес ;]"}}