Skip to content

Commit

Permalink
Add new eslint rules for jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeezley committed Jun 13, 2017
1 parent 0889a10 commit 3c0074b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"rules": {
"valid-jsdoc": ["warn", {
"preferType": {
"Object": "object",
"Number": "number",
"String": "string",
"Boolean": "boolean",
"bool": "boolean"
},
"prefer": {
"return": "returns"
},
"requireReturn": false,
"requireReturnDescription": false,
"requireParamDescription": false,
"matchDescription": "^[^a-z][\\s\\S]*\\.$"
}],
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": false,
"MethodDefinition": true,
"ClassDeclaration": true
}
}]
}
}

0 comments on commit 3c0074b

Please sign in to comment.