dsheiko / jscodesniffer

⛔️ [DEPRECATED] Tool to ensure that your JavaScript code does not violate the specified coding standard (Idiomatic Style Manifesto or JQuery Core Style Guidelines)
http://dsheiko.github.io/jscodesniffer/
42 stars 8 forks source link

Use strict generates error #5

Closed MauritzKruger closed 11 years ago

MauritzKruger commented 11 years ago

In start of js file we need to add 'use strict' to comply to the new standards, but adding this in first line of file and running jscs of this file gives follow error: FILE: violates Idiomatic standard ERROR: Variable statements should always be in the beginning of their respective scope

dsheiko commented 11 years ago

Thanks for the pointing out. I believe I've fixed that