{"action":"created","issue":{"url":"https://api.github.com/repos/honza/vim-snippets/issues/578","labels_url":"https://api.github.com/repos/honza/vim-snippets/issues/578/labels{/name}","comments_url":"https://api.github.com/repos/honza/vim-snippets/issues/578/comments","events_url":"https://api.github.com/repos/honza/vim-snippets/issues/578/events","html_url":"https://github.com/honza/vim-snippets/issues/578","id":75933684,"number":578,"title":"Conforming JavaScript snippets to Standard","user":{"login":"mmwtsn","id":1479130,"avatar_url":"https://avatars.githubusercontent.com/u/1479130?v=3","gravatar_id":"","url":"https://api.github.com/users/mmwtsn","html_url":"https://github.com/mmwtsn","followers_url":"https://api.github.com/users/mmwtsn/followers","following_url":"https://api.github.com/users/mmwtsn/following{/other_user}","gists_url":"https://api.github.com/users/mmwtsn/gists{/gist_id}","starred_url":"https://api.github.com/users/mmwtsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmwtsn/subscriptions","organizations_url":"https://api.github.com/users/mmwtsn/orgs","repos_url":"https://api.github.com/users/mmwtsn/repos","events_url":"https://api.github.com/users/mmwtsn/events{/privacy}","received_events_url":"https://api.github.com/users/mmwtsn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-13T10:22:10Z","updated_at":"2015-05-13T16:06:03Z","closed_at":null,"body":"I've noticed [quite a few projects](https://github.com/feross/standard/blob/master/test/clone.js) adopting [JS Standard code style](https://github.com/feross/standard). There is good support across the more popular editors and its defaults seem fair.\r\n\r\nIs there any interest in updating the JavaScript snippets to adhere to Standard?\r\n\r\nIf so, I'd be happy to open a pull request. If not, is there a recommended way to extend snippets other than installing a fork locally?"},"comment":{"url":"https://api.github.com/repos/honza/vim-snippets/issues/comments/101726171","html_url":"https://github.com/honza/vim-snippets/issues/578#issuecomment-101726171","issue_url":"https://api.github.com/repos/honza/vim-snippets/issues/578","id":101726171,"user":{"login":"mmwtsn","id":1479130,"avatar_url":"https://avatars.githubusercontent.com/u/1479130?v=3","gravatar_id":"","url":"https://api.github.com/users/mmwtsn","html_url":"https://github.com/mmwtsn","followers_url":"https://api.github.com/users/mmwtsn/followers","following_url":"https://api.github.com/users/mmwtsn/following{/other_user}","gists_url":"https://api.github.com/users/mmwtsn/gists{/gist_id}","starred_url":"https://api.github.com/users/mmwtsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmwtsn/subscriptions","organizations_url":"https://api.github.com/users/mmwtsn/orgs","repos_url":"https://api.github.com/users/mmwtsn/repos","events_url":"https://api.github.com/users/mmwtsn/events{/privacy}","received_events_url":"https://api.github.com/users/mmwtsn/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T16:06:02Z","updated_at":"2015-05-13T16:06:02Z","body":"Absolutely! It's tricky. #468 sort of gets at this problem. Given that most JavaScript files use the same extension it's difficult to know what snippets, exactly, should be sourced or ignored for any given file. As you pointed out client- and server-side JavaScript obviously have very different concerns.\r\n\r\nYou actually don't deviate much but when linting is set up as part of a build something as trivial as quote style (e.g. single versus double) can prevent the test suite from passing.\r\n\r\nPerhaps this has less to do with enforcing a style guide across all the snippets and more to do with extendability. In any event, I forked the repository and dropped the semi-colons to keep my local builds happy :)"}}