From d5db0a2f45509835002f84af23b64b47bfe77154 Mon Sep 17 00:00:00 2001 From: vahan-hartooni Date: Tue, 17 Dec 2013 13:07:59 -0800 Subject: [PATCH] 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. --- linters/SublimeLinter/SublimeLinter.sublime-settings | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linters/SublimeLinter/SublimeLinter.sublime-settings b/linters/SublimeLinter/SublimeLinter.sublime-settings index 5c4e5dd382..12360f3f1c 100644 --- a/linters/SublimeLinter/SublimeLinter.sublime-settings +++ b/linters/SublimeLinter/SublimeLinter.sublime-settings @@ -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 } }