{"action":"created","issue":{"url":"https://api.github.com/repos/mantoni/eslint_d.js/issues/33","repository_url":"https://api.github.com/repos/mantoni/eslint_d.js","labels_url":"https://api.github.com/repos/mantoni/eslint_d.js/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/mantoni/eslint_d.js/issues/33/comments","events_url":"https://api.github.com/repos/mantoni/eslint_d.js/issues/33/events","html_url":"https://github.com/mantoni/eslint_d.js/pull/33","id":137031689,"number":33,"title":"requre chalk in another try-catch","user":{"login":"ruanyl","id":486382,"avatar_url":"https://avatars.githubusercontent.com/u/486382?v=3","gravatar_id":"","url":"https://api.github.com/users/ruanyl","html_url":"https://github.com/ruanyl","followers_url":"https://api.github.com/users/ruanyl/followers","following_url":"https://api.github.com/users/ruanyl/following{/other_user}","gists_url":"https://api.github.com/users/ruanyl/gists{/gist_id}","starred_url":"https://api.github.com/users/ruanyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruanyl/subscriptions","organizations_url":"https://api.github.com/users/ruanyl/orgs","repos_url":"https://api.github.com/users/ruanyl/repos","events_url":"https://api.github.com/users/ruanyl/events{/privacy}","received_events_url":"https://api.github.com/users/ruanyl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-28T09:14:12Z","updated_at":"2016-02-28T15:28:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mantoni/eslint_d.js/pulls/33","html_url":"https://github.com/mantoni/eslint_d.js/pull/33","diff_url":"https://github.com/mantoni/eslint_d.js/pull/33.diff","patch_url":"https://github.com/mantoni/eslint_d.js/pull/33.patch"},"body":"in the use case when eslint is installed locally with 3rd party\r\nconfigurations, for example: eslint-config-airbnb. However chalk is not\r\ninstalled locally, this will cause an exception and goes into the catch\r\nclause and load eslint and chak from eslint_d.\r\n\r\nNow eslint will not able to find eslint-config-airbnb which installed\r\nlocally.\r\n\r\nI split the try-catch clause, so that eslint and chalk will be loaded\r\nseparately. Means eslint will be resolved from local, and whether there\r\nis eslint at local, it does not effect the way how chalk will be loaded."},"comment":{"url":"https://api.github.com/repos/mantoni/eslint_d.js/issues/comments/189892058","html_url":"https://github.com/mantoni/eslint_d.js/pull/33#issuecomment-189892058","issue_url":"https://api.github.com/repos/mantoni/eslint_d.js/issues/33","id":189892058,"user":{"login":"ruanyl","id":486382,"avatar_url":"https://avatars.githubusercontent.com/u/486382?v=3","gravatar_id":"","url":"https://api.github.com/users/ruanyl","html_url":"https://github.com/ruanyl","followers_url":"https://api.github.com/users/ruanyl/followers","following_url":"https://api.github.com/users/ruanyl/following{/other_user}","gists_url":"https://api.github.com/users/ruanyl/gists{/gist_id}","starred_url":"https://api.github.com/users/ruanyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruanyl/subscriptions","organizations_url":"https://api.github.com/users/ruanyl/orgs","repos_url":"https://api.github.com/users/ruanyl/repos","events_url":"https://api.github.com/users/ruanyl/events{/privacy}","received_events_url":"https://api.github.com/users/ruanyl/received_events","type":"User","site_admin":false},"created_at":"2016-02-28T15:28:41Z","updated_at":"2016-02-28T15:28:41Z","body":"Yes, you are right. `--no-color` seems not work in this case. I tried to resolve chalk from eslint directory, this works as expected. eslint works, `--no-color` flag works."}}