forked from austinjavascript/austinjavascript.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
32 lines (32 loc) · 913 Bytes
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"root": true,
"extends": "airbnb-base",
"rules": {
// Require spaces before comments...
"lines-around-comment": [
"error",
{
// ...except when first line of array, or...
"allowArrayStart": true,
// ...except when first line of block, or...
"allowBlockStart": true,
// ...except when first line of object.
"allowObjectStart": true
}
],
// Visually set-off the var assignment from the rest of code.
"newline-after-var": "error",
// Visually set-off the return from the rest of code.
"newline-before-return": "error",
// Require developers to describe function purpose, arguments, and returns.
"require-jsdoc": "error",
// Require valid JSDoc.
"valid-jsdoc": [
"error",
{
// Only require @return if there's a return statement.
"requireReturn": false
}
]
}
}