{"action":"opened","issue":{"url":"https://api.github.com/repos/wallabyjs/public/issues/843","repository_url":"https://api.github.com/repos/wallabyjs/public","labels_url":"https://api.github.com/repos/wallabyjs/public/issues/843/labels{/name}","comments_url":"https://api.github.com/repos/wallabyjs/public/issues/843/comments","events_url":"https://api.github.com/repos/wallabyjs/public/issues/843/events","html_url":"https://github.com/wallabyjs/public/issues/843","id":184658661,"number":843,"title":"WebStorm:  SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode","user":{"login":"oshalygin","id":7675942,"avatar_url":"https://avatars.githubusercontent.com/u/7675942?v=3","gravatar_id":"","url":"https://api.github.com/users/oshalygin","html_url":"https://github.com/oshalygin","followers_url":"https://api.github.com/users/oshalygin/followers","following_url":"https://api.github.com/users/oshalygin/following{/other_user}","gists_url":"https://api.github.com/users/oshalygin/gists{/gist_id}","starred_url":"https://api.github.com/users/oshalygin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oshalygin/subscriptions","organizations_url":"https://api.github.com/users/oshalygin/orgs","repos_url":"https://api.github.com/users/oshalygin/repos","events_url":"https://api.github.com/users/oshalygin/events{/privacy}","received_events_url":"https://api.github.com/users/oshalygin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-22T22:38:43Z","updated_at":"2016-10-22T22:38:43Z","closed_at":null,"body":"### Issue description or question\r\nCan't run tests in WebStorm with a configuration file that works flawlessly in VSCode\r\n### Wallaby.js configuration file\r\n\r\n```javascript\r\nmodule.exports = function (wallaby) {\r\n\r\n    return {\r\n        files: [\r\n            \"client/**/*.js*\",\r\n            \"server/**/*.js\",\r\n            \"!client/**/*.json\",\r\n            \"!client/**/*.spec.js*\",\r\n            \"!server/**/*.spec.js*\",\r\n            { pattern: \"/**/*.png\", load: \"null\" }\r\n        ],\r\n\r\n        tests: [\r\n            \"client/**/*.spec.js\",\r\n            \"server/**/*.spec.js\"\r\n\r\n        ],\r\n        env: {\r\n            type: \"node\",\r\n            params: {\r\n                env: \"NODE_ENV=test\"\r\n            }\r\n        },\r\n        compilers: {\r\n            \"**/*.js*\": wallaby.compilers.babel({\r\n                presets: [\"react\", \"es2015\"],\r\n                plugins: [\"transform-object-rest-spread\"]\r\n            })\r\n        },\r\n\r\n        setup: function () {\r\n\r\n            const noop = () => { };\r\n\r\n            require.extensions[\".css\"] = noop;\r\n            require.extensions[\".ico\"] = noop;\r\n            require.extensions[\".png\"] = noop;\r\n            require.extensions[\".svg\"] = noop;\r\n\r\n            let jsdom = require(\"jsdom\").jsdom;\r\n            let exposedProperties = [\"window\", \"navigator\", \"document\"];\r\n\r\n            global.document = jsdom(\"\");\r\n            global.window = document.defaultView;\r\n            Object.keys(document.defaultView).forEach((property) => {\r\n                if (typeof global[property] === \"undefined\") {\r\n                    exposedProperties.push(property);\r\n                    global[property] = document.defaultView[property];\r\n                }\r\n            });\r\n\r\n\r\n            global.localStorage = {\r\n                getItem: function () { },\r\n                setItem: function () { }\r\n            };\r\n\r\n            global.navigator = {\r\n                userAgent: \"node.js\"\r\n            };\r\n\r\n            documentRef = document; //eslint-disable-line no-undef\r\n        }\r\n    };\r\n};\r\n```\r\n\r\n### Code editor or IDE name and version\r\n\r\nWebStorm 2016.2.4\r\n\r\n### OS name and version\r\nOSX\r\n\r\nI tried adding `\"use strict\"` but then I got the same error 30+ times instead of once.\r\n```javascript\r\nmodule.exports = function (wallaby) {\r\n\"use strict\"\r\n    return {\r\n        files: [\r\n            \"client/**/*.js*\",\r\n            \"server/**/*.js\",\r\n```\r\n"}}
{"actor":{"display_login":"oshalygin"}}