Skip to content

Commit ae773d5

Browse files
committed
Adding some rules to the Readme. We’re missing others.
1 parent aef5f5b commit ae773d5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Our styles are based on the excellent [javascript guide from Airbnb](https://git
1313
## Exceptions
1414

1515
### Whitespace
16-
- Limit your lines to 100 characters (with a 5 characters tolerance). eslint: [max-len](http://eslint.org/docs/rules/max-len).
16+
- Limit your lines to 120 characters. eslint: [max-len](http://eslint.org/docs/rules/max-len).
1717
> This ensures readability and maintainability.
1818
1919
```javascript
@@ -28,6 +28,15 @@ Our styles are based on the excellent [javascript guide from Airbnb](https://git
2828
.then(Promise.resolve);
2929
```
3030

31+
### Functions
32+
- Allow usage before declaration. eslint: [no-use-before-define](http://eslint.org/docs/rules/no-use-before-define)
33+
34+
```javascript
35+
doSomething();
36+
37+
function doSomething() {}
38+
```
39+
3140
## Naming conventions
3241
### Consistency and disambiguation
3342

0 commit comments

Comments
 (0)