{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/1844","labels_url":"https://api.github.com/repos/eslint/eslint/issues/1844/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/1844/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/1844/events","html_url":"https://github.com/eslint/eslint/issues/1844","id":58080290,"number":1844,"title":"Use strict error during validation of all files","user":{"login":"lmaze","id":11060691,"avatar_url":"https://avatars.githubusercontent.com/u/11060691?v=3","gravatar_id":"","url":"https://api.github.com/users/lmaze","html_url":"https://github.com/lmaze","followers_url":"https://api.github.com/users/lmaze/followers","following_url":"https://api.github.com/users/lmaze/following{/other_user}","gists_url":"https://api.github.com/users/lmaze/gists{/gist_id}","starred_url":"https://api.github.com/users/lmaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmaze/subscriptions","organizations_url":"https://api.github.com/users/lmaze/orgs","repos_url":"https://api.github.com/users/lmaze/repos","events_url":"https://api.github.com/users/lmaze/events{/privacy}","received_events_url":"https://api.github.com/users/lmaze/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":3,"created_at":"2015-02-18T15:15:06Z","updated_at":"2015-02-18T19:13:32Z","closed_at":"2015-02-18T17:11:23Z","body":"I just installed eslint (v0.14.1) with a fresh installation of node (v0.12.0 x64 windows version).\r\nEverything seems okay but when I run eslint on a file, I get the same error each time :\r\n**1:0  error  Use the function form of \"use strict\"  global-strict**\r\n\r\nThe file I am trying to validate is very simple. I tried with the same example as the one on the website :\r\n```javascript\r\n\"use strict\";\r\nfunction foo() {\r\n    return function() {\r\n        return;\r\n    };\r\n}\r\nfoo();\r\n```\r\n\r\nI tried many things but no change works.\r\n\r\nMy validation rules are very simple too :\r\n```javascript\r\n{\r\n    \"env\": {\r\n        \"browser\": true\r\n    },\r\n    \"rules\": {\r\n        \"strict\": [2, \"global\"],\r\n        \"eol-last\": 0\r\n    }\r\n}\r\n```\r\n\r\nI tested with the latest node in version 0.10.36 too and the error is still present.\r\n\r\nI'm not a beginner in node and I really want to use eslint for our projects but in this situation it is impossible.\r\nI think it really looks like a bug.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/74927528","html_url":"https://github.com/eslint/eslint/issues/1844#issuecomment-74927528","issue_url":"https://api.github.com/repos/eslint/eslint/issues/1844","id":74927528,"user":{"login":"nzakas","id":38546,"avatar_url":"https://avatars.githubusercontent.com/u/38546?v=3","gravatar_id":"","url":"https://api.github.com/users/nzakas","html_url":"https://github.com/nzakas","followers_url":"https://api.github.com/users/nzakas/followers","following_url":"https://api.github.com/users/nzakas/following{/other_user}","gists_url":"https://api.github.com/users/nzakas/gists{/gist_id}","starred_url":"https://api.github.com/users/nzakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzakas/subscriptions","organizations_url":"https://api.github.com/users/nzakas/orgs","repos_url":"https://api.github.com/users/nzakas/repos","events_url":"https://api.github.com/users/nzakas/events{/privacy}","received_events_url":"https://api.github.com/users/nzakas/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T19:13:32Z","updated_at":"2015-02-18T19:13:32Z","body":"Sorry about the confusion...we kept the old rules with their old settings so as not to disrupt any existing users. For 1.0.0, we will remove the old ones and turn the new one on by default."}}