mirror of
https://github.com/airbnb/javascript.git
synced 2026-04-25 03:00:19 -04:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user