Enforce 'use strict'

As stated in the [Modules section](https://github.com/airbnb/javascript#modules), `'use strict'` needs to be declared at the top of a module

[JSHint has an option](http://www.jshint.com/docs/options/#strict) for something like this by enforcing the declaration of the statement at the top function scope.
This commit is contained in:
vahan-hartooni
2013-12-17 13:07:59 -08:00
parent 440b34a0b5
commit d5db0a2f45

View File

@@ -65,6 +65,9 @@
"unused": true,
// Enforce line length to 80 characters
"maxlen": 80
"maxlen": 80,
// Enforce placing 'use strict' at the top function scope
"strict": true
}
}