Skip to content

Commit 398cca5

Browse files
authored
Fix jsdoc/tag-lines linter rule setting (#105)
* Fix jsdoc/tag-lines linter rule setting * Fix linting errors in ApiError
1 parent 6343c52 commit 398cca5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ module.exports = {
2323
'max-len': 'off',
2424
'operator-linebreak': 'off',
2525
'jsdoc/require-param-description': 'off',
26+
'jsdoc/tag-lines': ['error', 'any', { startLines: 1 }],
2627
},
2728
};

lib/error.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
class ApiError extends Error {
22
/**
33
* Creates a representation of an API error.
4+
*
45
* @param {string} message - Error message
56
* @param {Request} request - HTTP request
67
* @param {Response} response - HTTP response
7-
* @returns {ApiError}
8+
* @returns {ApiError} - An instance of ApiError
89
*/
910
constructor(message, request, response) {
1011
super(message);

0 commit comments

Comments
 (0)