From 76c8f713229a4645bc2c219a033e701d26a0e944 Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford Date: Tue, 25 Oct 2016 14:08:26 -0700 Subject: [PATCH] feat(jsdoc): add more checks to valid-jsdoc rule BREAKING CHANGE: Added stricter options from http://eslint.org/docs/rules/valid-jsdoc --- index.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 7fe85f9..5948fc0 100644 --- a/index.js +++ b/index.js @@ -4,9 +4,22 @@ module.exports = { // Errors 'valid-jsdoc': [2, { prefer: { - return: 'return' + arg: 'param', + argument: 'param', + class: 'constructor', + return: 'return', + virtual: 'abstract' }, - requireReturn: false + preferType: { + Boolean: 'boolean', + Number: 'number', + Object: 'object', + String: 'string' + }, + requireReturn: false, + requireReturnType: true, + requireParamDescription: true, + requireReturnDescription: true }], // Best practices