{"action":"created","issue":{"url":"https://api.github.com/repos/okonet/lint-staged/issues/165","repository_url":"https://api.github.com/repos/okonet/lint-staged","labels_url":"https://api.github.com/repos/okonet/lint-staged/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/okonet/lint-staged/issues/165/comments","events_url":"https://api.github.com/repos/okonet/lint-staged/issues/165/events","html_url":"https://github.com/okonet/lint-staged/issues/165","id":227899446,"number":165,"title":"Lint staged not working, no error, no warning","user":{"login":"jitendravyas","id":77309,"avatar_url":"https://avatars1.githubusercontent.com/u/77309?v=3","gravatar_id":"","url":"https://api.github.com/users/jitendravyas","html_url":"https://github.com/jitendravyas","followers_url":"https://api.github.com/users/jitendravyas/followers","following_url":"https://api.github.com/users/jitendravyas/following{/other_user}","gists_url":"https://api.github.com/users/jitendravyas/gists{/gist_id}","starred_url":"https://api.github.com/users/jitendravyas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jitendravyas/subscriptions","organizations_url":"https://api.github.com/users/jitendravyas/orgs","repos_url":"https://api.github.com/users/jitendravyas/repos","events_url":"https://api.github.com/users/jitendravyas/events{/privacy}","received_events_url":"https://api.github.com/users/jitendravyas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2017-05-11T07:19:37Z","updated_at":"2017-05-21T07:51:00Z","closed_at":null,"body":"I followed this example https://github.com/okonet/lint-staged#installation-and-setup\r\n\r\nHave this in my package.json\r\n\r\n```\r\n \"scripts\": {\r\n    \r\n    \"pre-commit\": \"lint-staged\"\r\n  },\r\n\r\n```\r\nand added this to my `.lintstagedrc` file\r\n\r\n```\r\n{\r\n\t\"*.css\": \"stylelint\",\r\n\t\"*.scss\": \"stylelint --syntax=scss\"\r\n}\r\n```\r\n\r\nLatest OSX, Node version `v6.10.0` and npm version `3.10.10`\r\n\r\nI had stylelint installed already and my stylelint works fine if I run via my grunt task. `grunt stylelint`\r\n\r\nI made a change to my existing `.scss` file but don't get anything in CLI when I add files to staging and commit. Things just work like there is no lint-staged.\r\n\r\n**Edited**\r\n\r\nI followed this article https://medium.com/@okonetchnikov/make-linting-great-again-f3890e1ad6b8\r\n\r\n```\r\n// package.json\r\n...\r\n\"scripts\" {\r\n \"lint-staged\": \"lint-staged\",\r\n \"stylelint-staged\": \"stylelint --syntax scss\"\r\n},\r\n\"lint-staged\": {\r\n \"*.js\": \"eslint\",\r\n \"*.scss\": \"stylelint-staged\"\r\n},\r\n\"pre-commit\": \"lint-staged\"\r\n...\r\n```\r\n\r\nand it worked but I get this warning too after linting errors\r\n\r\n```\r\npre-commit: \r\npre-commit: We've failed to pass the specified git pre-commit hooks as the `lint-staged`\r\npre-commit: hook returned an exit code (1). If you're feeling adventurous you can\r\npre-commit: skip the git pre-commit hooks by adding the following flags to your commit:\r\npre-commit: \r\npre-commit:   git commit -n (or --no-verify)\r\npre-commit: \r\npre-commit: This is ill-advised since the commit is broken.\r\npre-commit: \r\n```"},"comment":{"url":"https://api.github.com/repos/okonet/lint-staged/issues/comments/302921213","html_url":"https://github.com/okonet/lint-staged/issues/165#issuecomment-302921213","issue_url":"https://api.github.com/repos/okonet/lint-staged/issues/165","id":302921213,"user":{"login":"FrancisMurillo","id":7600642,"avatar_url":"https://avatars0.githubusercontent.com/u/7600642?v=3","gravatar_id":"","url":"https://api.github.com/users/FrancisMurillo","html_url":"https://github.com/FrancisMurillo","followers_url":"https://api.github.com/users/FrancisMurillo/followers","following_url":"https://api.github.com/users/FrancisMurillo/following{/other_user}","gists_url":"https://api.github.com/users/FrancisMurillo/gists{/gist_id}","starred_url":"https://api.github.com/users/FrancisMurillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrancisMurillo/subscriptions","organizations_url":"https://api.github.com/users/FrancisMurillo/orgs","repos_url":"https://api.github.com/users/FrancisMurillo/repos","events_url":"https://api.github.com/users/FrancisMurillo/events{/privacy}","received_events_url":"https://api.github.com/users/FrancisMurillo/received_events","type":"User","site_admin":false},"created_at":"2017-05-21T07:51:00Z","updated_at":"2017-05-21T07:51:00Z","body":"After a brief moment of clarity and looking at `index.js`, I realized I didn't have `\"lint-staged\": \"lint-staged\"` in my `package.json` which silently fails `index.js:228`for me. I apologize for the false alarm in my case."}}
{"actor":{"display_login":"FrancisMurillo"}}