{"action":"closed","issue":{"url":"https://api.github.com/repos/gajus/swing/issues/21","labels_url":"https://api.github.com/repos/gajus/swing/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/gajus/swing/issues/21/comments","events_url":"https://api.github.com/repos/gajus/swing/issues/21/events","html_url":"https://github.com/gajus/swing/issues/21","id":51694552,"number":21,"title":"Use ESHint","user":{"login":"gajus","id":973543,"avatar_url":"https://avatars.githubusercontent.com/u/973543?v=3","gravatar_id":"","url":"https://api.github.com/users/gajus","html_url":"https://github.com/gajus","followers_url":"https://api.github.com/users/gajus/followers","following_url":"https://api.github.com/users/gajus/following{/other_user}","gists_url":"https://api.github.com/users/gajus/gists{/gist_id}","starred_url":"https://api.github.com/users/gajus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gajus/subscriptions","organizations_url":"https://api.github.com/users/gajus/orgs","repos_url":"https://api.github.com/users/gajus/repos","events_url":"https://api.github.com/users/gajus/events{/privacy}","received_events_url":"https://api.github.com/users/gajus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-11T14:47:05Z","updated_at":"2015-02-25T10:00:02Z","closed_at":"2015-02-25T10:00:02Z","body":"Remove \"jshint\" dev dependency from package.json and the gulp task.\r\n\r\nsh:\r\n\r\n```sh\r\nnpm install gulp-eslint --save-dev\r\n```\r\n\r\ngulpfile.js:\r\n\r\n```js\r\nvar eslint = require('gulp-eslint');\r\n\r\ngulp.task('lint', function () {\r\n    return gulp\r\n        .src(['./src/*.js', './src/cinemas/*/*.js', './tests/*.js'])\r\n        .pipe(eslint())\r\n        .pipe(eslint.format())\r\n        .pipe(eslint.failOnError());\r\n});\r\n```\r\n\r\n.eslintrc:\r\n\r\n```json\r\n{\r\n    \"rules\": {\r\n        \"no-console\": 0,\r\n        \"no-extra-parens\": 2,\r\n        \"no-reserved-keys\": 2,\r\n        \"no-eq-null\": 2,\r\n        \"no-extend-native\": 2,\r\n        \"no-process-env\": 2,\r\n        \"no-self-compare\": 2,\r\n        \"no-void\": 2,\r\n        \"no-warning-comments\": [1, { \"terms\": [\"todo\", \"@toto\"], \"location\": \"start\" }],\r\n        \"vars-on-top\": 2,\r\n        \"wrap-iife\": [2, \"inside\"],\r\n        \"global-strict\": [2, \"always\"],\r\n        \"new-cap\": 0,\r\n        \"no-shadow\": 0,\r\n        \"no-mixed-requires\": 0,\r\n        \"no-new-require\": 2,\r\n        \"brace-style\": [2, \"1tbs\"],\r\n        \"comma-style\": [2, \"last\"],\r\n        \"func-style\": [2, \"expression\"],\r\n        \"no-inline-comments\": 2,\r\n        \"no-lonely-if\": 2,\r\n        \"no-multiple-empty-lines\": 2,\r\n        \"no-nested-ternary\": 2,\r\n        \"one-var\": 2,\r\n        \"operator-assignment\": [2, \"always\"],\r\n        \"padded-blocks\": [2, \"never\"],\r\n        \"quote-props\": [2, \"as-needed\"],\r\n        \"quotes\": [2, \"single\"],\r\n        \"space-after-keywords\": [2, \"always\"],\r\n        \"space-before-blocks\": [2, \"always\"],\r\n        \"space-in-brackets\": [2, \"never\"],\r\n        \"space-in-parens\": [2, \"never\"],\r\n        \"space-unary-ops\": [2, { \"words\": true, \"nonwords\": false }],\r\n        \"spaced-line-comment\": [2, \"always\"],\r\n    },\r\n    \"env\":{\r\n        \"mocha\": true,\r\n        \"node\": true\r\n    }\r\n}\r\n```"}}