{"action":"created","issue":{"url":"https://api.github.com/repos/ajaxorg/ace/issues/895","labels_url":"https://api.github.com/repos/ajaxorg/ace/issues/895/labels{/name}","comments_url":"https://api.github.com/repos/ajaxorg/ace/issues/895/comments","events_url":"https://api.github.com/repos/ajaxorg/ace/issues/895/events","html_url":"https://github.com/ajaxorg/ace/issues/895","id":6461031,"number":895,"title":"expose JSHint's options as a configurable setting","user":{"login":"NodeGuy","id":2148537,"avatar_url":"https://avatars.githubusercontent.com/u/2148537?v=3","gravatar_id":"","url":"https://api.github.com/users/NodeGuy","html_url":"https://github.com/NodeGuy","followers_url":"https://api.github.com/users/NodeGuy/followers","following_url":"https://api.github.com/users/NodeGuy/following{/other_user}","gists_url":"https://api.github.com/users/NodeGuy/gists{/gist_id}","starred_url":"https://api.github.com/users/NodeGuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NodeGuy/subscriptions","organizations_url":"https://api.github.com/users/NodeGuy/orgs","repos_url":"https://api.github.com/users/NodeGuy/repos","events_url":"https://api.github.com/users/NodeGuy/events{/privacy}","received_events_url":"https://api.github.com/users/NodeGuy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ajaxorg/ace/labels/worker","name":"worker","color":"DDDDDD"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2012-08-26T19:29:22Z","updated_at":"2015-09-24T10:56:44Z","closed_at":"2012-10-12T23:27:36Z","body":"Currently the options sent to JSHint are hardwired [within javascript_worker.js](https://github.com/ajaxorg/ace/blob/5a7bc873010f3199c9b7d5f3266dd97dbcbe3ad1/lib/ace/mode/javascript_worker.js#L81):\n\n```Javascript\nlint(value, {undef: false, onevar: false, passfail: false});\n```\n\nPlease make them available via the public API as a configurable setting."},"comment":{"url":"https://api.github.com/repos/ajaxorg/ace/issues/comments/142893289","html_url":"https://github.com/ajaxorg/ace/issues/895#issuecomment-142893289","issue_url":"https://api.github.com/repos/ajaxorg/ace/issues/895","id":142893289,"user":{"login":"homam","id":922176,"avatar_url":"https://avatars.githubusercontent.com/u/922176?v=3","gravatar_id":"","url":"https://api.github.com/users/homam","html_url":"https://github.com/homam","followers_url":"https://api.github.com/users/homam/followers","following_url":"https://api.github.com/users/homam/following{/other_user}","gists_url":"https://api.github.com/users/homam/gists{/gist_id}","starred_url":"https://api.github.com/users/homam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/homam/subscriptions","organizations_url":"https://api.github.com/users/homam/orgs","repos_url":"https://api.github.com/users/homam/repos","events_url":"https://api.github.com/users/homam/events{/privacy}","received_events_url":"https://api.github.com/users/homam/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T10:56:44Z","updated_at":"2015-09-24T10:56:44Z","body":"@hyusetiawan this is what I'm using:\r\n\r\n```\r\neditor.session.on('changeMode', function(e, session){\r\n  if (\"ace/mode/javascript\" === session.getMode().$id) {\r\n    if (!!session.$worker) {\r\n      session.$worker.send(\"setOptions\", [{\r\n        \"-W095\": false,\r\n        \"-W025\": false\r\n      }]);\r\n    }\r\n  }\r\n});\r\n```"}}