Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Contributing.md code style - add strict mode

  • Loading branch information...
commit 3746529d2f55634893bc43e6ba385b0fc0b3d704 1 parent aff4ddb
@sindresorhus sindresorhus authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 contributing.md
View
5 contributing.md
@@ -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]);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.