{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/5799","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/5799/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/5799/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/5799/events","html_url":"https://github.com/eslint/eslint/issues/5799","id":146221552,"number":5799,"title":"no-fallthrough doesn't seem to work","user":{"login":"Grandrath","id":399903,"avatar_url":"https://avatars.githubusercontent.com/u/399903?v=3","gravatar_id":"","url":"https://api.github.com/users/Grandrath","html_url":"https://github.com/Grandrath","followers_url":"https://api.github.com/users/Grandrath/followers","following_url":"https://api.github.com/users/Grandrath/following{/other_user}","gists_url":"https://api.github.com/users/Grandrath/gists{/gist_id}","starred_url":"https://api.github.com/users/Grandrath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Grandrath/subscriptions","organizations_url":"https://api.github.com/users/Grandrath/orgs","repos_url":"https://api.github.com/users/Grandrath/repos","events_url":"https://api.github.com/users/Grandrath/events{/privacy}","received_events_url":"https://api.github.com/users/Grandrath/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/triage","name":"triage","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-06T07:52:46Z","updated_at":"2016-04-06T08:33:44Z","closed_at":null,"body":"Maybe I am missing something, but the following code snippet lints successfully when I enter it into http://eslint.org/demo/. I expected it to fail with `no-fallthrough`.\r\n\r\n```javascript\r\nswitch (\"foo\") {\r\ncase \"foo\":\r\ncase \"bar\":\r\n    break;\r\ndefault:\r\n    throw new Error();\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/206218569","html_url":"https://github.com/eslint/eslint/issues/5799#issuecomment-206218569","issue_url":"https://api.github.com/repos/eslint/eslint/issues/5799","id":206218569,"user":{"login":"scriptdaemon","id":1626636,"avatar_url":"https://avatars.githubusercontent.com/u/1626636?v=3","gravatar_id":"","url":"https://api.github.com/users/scriptdaemon","html_url":"https://github.com/scriptdaemon","followers_url":"https://api.github.com/users/scriptdaemon/followers","following_url":"https://api.github.com/users/scriptdaemon/following{/other_user}","gists_url":"https://api.github.com/users/scriptdaemon/gists{/gist_id}","starred_url":"https://api.github.com/users/scriptdaemon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scriptdaemon/subscriptions","organizations_url":"https://api.github.com/users/scriptdaemon/orgs","repos_url":"https://api.github.com/users/scriptdaemon/repos","events_url":"https://api.github.com/users/scriptdaemon/events{/privacy}","received_events_url":"https://api.github.com/users/scriptdaemon/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T08:33:44Z","updated_at":"2016-04-06T08:33:44Z","body":"This rule allows for empty case clauses, which explains why that snippet of code that does not generate a warning. A similar snippet is included among the examples of passing code for this rule: http://eslint.org/docs/rules/no-fallthrough."}}