diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-09-25 12:07:19 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-09-25 14:53:28 +0200 |
commit | 040992884b416d5c86e3a06731f26a5b1c68d7a8 (patch) | |
tree | cbb88805176c6e7ed040ab87b8797f5e47edd61a /.eslintrc.js | |
parent | 6e4c413aef45f681805a587938096c45e049eae2 (diff) |
JSDoc fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index b93fd9ef..32a65861 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -46,6 +46,14 @@ module.exports = { 'operator-linebreak': ['error', 'before'], // ternary on multiline 'multiline-ternary': ['error', 'always-multiline'], + // force proper JSDocs + 'valid-jsdoc': [2, { + 'prefer': { + 'return': 'returns' + }, + 'requireReturn': false, + 'requireReturnDescription': false + }], // es6 import/export and require 'node/no-unpublished-require': ['off'], 'node/no-unsupported-features': ['off'], |