{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/2309","labels_url":"https://api.github.com/repos/eslint/eslint/issues/2309/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/2309/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/2309/events","html_url":"https://github.com/eslint/eslint/issues/2309","id":68401674,"number":2309,"title":"--strict for counting warnings as errors","user":{"login":"ericclemmons","id":15182,"avatar_url":"https://avatars.githubusercontent.com/u/15182?v=3","gravatar_id":"","url":"https://api.github.com/users/ericclemmons","html_url":"https://github.com/ericclemmons","followers_url":"https://api.github.com/users/ericclemmons/followers","following_url":"https://api.github.com/users/ericclemmons/following{/other_user}","gists_url":"https://api.github.com/users/ericclemmons/gists{/gist_id}","starred_url":"https://api.github.com/users/ericclemmons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericclemmons/subscriptions","organizations_url":"https://api.github.com/users/ericclemmons/orgs","repos_url":"https://api.github.com/users/ericclemmons/repos","events_url":"https://api.github.com/users/ericclemmons/events{/privacy}","received_events_url":"https://api.github.com/users/ericclemmons/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-04-14T14:56:42Z","updated_at":"2015-04-25T17:50:59Z","closed_at":"2015-04-14T15:24:12Z","body":"Soliciting feedback on the idea before doing the work.  My apologies if this is already doable, but I didn't find anything thus far...\r\n\r\n### Scenario\r\n\r\n- Linting is ran before `nodemon` restarts, the build runs, etc.\r\n- ESLint ensures that any syntax issues cause an error, preventing unnecessary server restarts, builds, etc.\r\n- Warnings are available in the console for the developer to _optionally_ clean up.\r\n- Code _works_, builds _run_, servers _restart_, but there's no way to actually **enforce  standards** without making everything incorrectly an _error_.\r\n\r\n**Solution – `--strict`**.\r\n\r\n- A `pre-push` git hook can run `eslint --strict` and even _warnings_ count as errors, preventing pushing.\r\n- Continuous integration tools can run in strict mode so that the build breaks when quality tests don't pass.\r\n- The user can still work on a feature with warnings, since the most important thing is the _feature working_.\r\n\r\nThe gist is, **quality should still be enforced somewhere in the process, but not be an impediment to development.**\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/96245806","html_url":"https://github.com/eslint/eslint/issues/2309#issuecomment-96245806","issue_url":"https://api.github.com/repos/eslint/eslint/issues/2309","id":96245806,"user":{"login":"ericclemmons","id":15182,"avatar_url":"https://avatars.githubusercontent.com/u/15182?v=3","gravatar_id":"","url":"https://api.github.com/users/ericclemmons","html_url":"https://github.com/ericclemmons","followers_url":"https://api.github.com/users/ericclemmons/followers","following_url":"https://api.github.com/users/ericclemmons/following{/other_user}","gists_url":"https://api.github.com/users/ericclemmons/gists{/gist_id}","starred_url":"https://api.github.com/users/ericclemmons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericclemmons/subscriptions","organizations_url":"https://api.github.com/users/ericclemmons/orgs","repos_url":"https://api.github.com/users/ericclemmons/repos","events_url":"https://api.github.com/users/ericclemmons/events{/privacy}","received_events_url":"https://api.github.com/users/ericclemmons/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T17:50:59Z","updated_at":"2015-04-25T17:50:59Z","body":"I think (the recently landed patch by @rexxars) #2373 solves this issue pretty well.\r\n\r\n```js\r\n// .eslint-strict\r\n{\r\n    \"extends\": \".eslintrc\",\r\n\r\n    \"rules\": {\r\n        // Override any settings from the \"parent\" configuration with stricter requirements\r\n        \"no-console\": 2\r\n    }\r\n}\r\n```"}}