Permalink
Browse files

Contributing.md code style - add strict mode

  • Loading branch information...
1 parent aff4ddb commit 3746529d2f55634893bc43e6ba385b0fc0b3d704 @sindresorhus sindresorhus committed Dec 12, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 contributing.md
View
@@ -8,6 +8,7 @@ We're happy to accept contributions in the form of new apps, bug fixes, issues,
- Tab indentation
- Single-quotes
- Semicolon
+- Strict mode
- No trailing whitespace
- Variables at the top of the scope
- Multiple variable statements
@@ -19,6 +20,8 @@ We're happy to accept contributions in the form of new apps, bug fixes, issues,
Example:
```js
+'use strict';
+
function foo(bar, fum) {
var i, l, ret;
var hello = 'Hello';
@@ -29,7 +32,7 @@ function foo(bar, fum) {
for (i = 0, l = bar.length; i < l; i++) {
if (bar[i] === hello) {
- ret = fum(out);
+ ret += fum(bar[i]);
}
}

0 comments on commit 3746529

Please sign in to comment.