Skip to content

Commit d5db0a2

Browse files
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.
1 parent 440b34a commit d5db0a2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

linters/SublimeLinter/SublimeLinter.sublime-settings

+4-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@
6565
"unused": true,
6666

6767
// Enforce line length to 80 characters
68-
"maxlen": 80
68+
"maxlen": 80,
69+
70+
// Enforce placing 'use strict' at the top function scope
71+
"strict": true
6972
}
7073
}

0 commit comments

Comments
 (0)