diff --git a/.eslintrc.js b/.eslintrc.js index 57a44ddb..e33833fb 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -23,5 +23,6 @@ module.exports = { 'max-len': 'off', 'operator-linebreak': 'off', 'jsdoc/require-param-description': 'off', + 'jsdoc/tag-lines': ['error', 'any', { startLines: 1 }], }, }; diff --git a/lib/error.js b/lib/error.js index 50c0e2fe..fc3b1840 100644 --- a/lib/error.js +++ b/lib/error.js @@ -1,10 +1,11 @@ class ApiError extends Error { /** * Creates a representation of an API error. + * * @param {string} message - Error message * @param {Request} request - HTTP request * @param {Response} response - HTTP response - * @returns {ApiError} + * @returns {ApiError} - An instance of ApiError */ constructor(message, request, response) { super(message);