Skip to content

Commit cb6754a

Browse files
committed
chore: remove all jsdoc eslint warnnings
1 parent 58c6d58 commit cb6754a

File tree

4 files changed

+1
-12
lines changed

4 files changed

+1
-12
lines changed

lib/utils/filename.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const getFolderPath = (p) => posix.join(posix.dirname(p), posix.sep);
2222
/**
2323
* @returns {string} base name
2424
* @param {string} filename filename without path
25-
* @param {boolean} [ignoreMiddleExtensions=false] flag to ignore middle extensions
25+
* @param {boolean} [ignoreMiddleExtensions] flag to ignore middle extensions
2626
*/
2727
export const getBasename = (filename, ignoreMiddleExtensions = false) =>
2828
filename.substring(

lib/utils/rule.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { isEmpty, isNil } from './utility.js';
1111

1212
/**
1313
* Takes in a rule and transforms it if it contains prefined match syntax
14-
*
1514
* @typedef {string} filenamePattern original filename pattern
1615
* @typedef {string} namingPattern original naming pattern
1716
* @typedef {[filenamePattern, namingPattern]} rule

lib/utils/utility.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { TEMPLATE_VARIABLE_REGEXP } from '../constants/regex.js';
77

88
/**
99
* Checks if the given argument is an object
10-
*
1110
* @param {any} x - The argument to check
1211
* @returns {boolean} - True if the argument is an object, false otherwise
1312
*/
@@ -16,7 +15,6 @@ export const isObject = (x) =>
1615

1716
/**
1817
* Checks if the given argument is an array
19-
*
2018
* @param {any} x - The argument to check
2119
* @returns {boolean} - True if the argument is an array, false otherwise
2220
*/
@@ -27,15 +25,13 @@ const isArray = (x) =>
2725

2826
/**
2927
* Checks if a value is undefined or null
30-
*
3128
* @param {any} x - The value to check
3229
* @returns {boolean} - Returns true if the value is undefined or null, false otherwise
3330
*/
3431
export const isNil = (x) => x === undefined || x === null;
3532

3633
/**
3734
* Checks if a value is an empty value
38-
*
3935
* @param {any} x - The value to check
4036
* @returns {boolean} - Returns true if the value is an empty value, false otherwise
4137
*/
@@ -46,15 +42,13 @@ export const isEmpty = (x) =>
4642

4743
/**
4844
* Negates a boolean value
49-
*
5045
* @param {boolean} x - The boolean value to negate
5146
* @returns {boolean} The negated boolean value
5247
*/
5348
const not = (x) => !x;
5449

5550
/**
5651
* Callback for file path
57-
*
5852
* @callback callback
5953
* @param {unknown} p
6054
*/
@@ -69,22 +63,19 @@ export const pipe =
6963

7064
/**
7165
* Checks if a value isn't an empty value
72-
*
7366
* @param {any} x - The value to check
7467
* @returns {boolean} - Returns true if the value isn't an empty value, false otherwise
7568
*/
7669
export const isNotEmpty = pipe(isEmpty, not);
7770

7871
/**
7972
* Template function with the specified template
80-
*
8173
* @callback templateFunction
8274
* @param {...string} data - param array
8375
* @returns {string} - String with replaced template variables
8476
*/
8577
/**
8678
* Get template function for a template string
87-
*
8879
* @param {string} tpl - The template string to be replaced
8980
* @returns {templateFunction} - A function that takes in data and replaces the template variables with the corresponding values from the data object
9081
*/

lib/utils/validation.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { isObject } from './utility.js';
1515

1616
/**
1717
* Validator
18-
*
1918
* @callback validator
2019
* @param {string} p pattern string
2120
*/

0 commit comments

Comments
 (0)