Skip to content

Commit

Permalink
refactor: remove unused params
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Apr 2, 2022
1 parent f873e32 commit 1c9884d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/rules/checkParamNames.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import iterateJsdoc from '../iterateJsdoc';
* @param {boolean} enableFixer
* @param {Array<string>} functionParameterNames
* @param jsdoc
* @param _jsdocNode
* @param utils
* @param report
* @returns {boolean}
Expand All @@ -23,7 +22,7 @@ const validateParameterNames = (
checkTypesRegex,
disableExtraPropertyReporting,
enableFixer,
functionParameterNames, jsdoc, _jsdocNode, utils, report,
functionParameterNames, jsdoc, utils, report,
) => {
const paramTags = Object.entries(jsdoc.tags).filter(([
, tag,
Expand Down Expand Up @@ -297,7 +296,6 @@ const validateParameterNamesDeep = (
export default iterateJsdoc(({
context,
jsdoc,
jsdocNode,
report,
utils,
}) => {
Expand Down Expand Up @@ -332,7 +330,6 @@ export default iterateJsdoc(({
enableFixer,
functionParameterNames,
jsdoc,
jsdocNode,
utils,
report,
);
Expand Down
5 changes: 1 addition & 4 deletions src/rules/checkPropertyNames.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ import iterateJsdoc from '../iterateJsdoc';
* @param {string} targetTagName
* @param {boolean} enableFixer
* @param jsdoc
* @param jsdocNode
* @param utils
* @returns {boolean}
*/
const validatePropertyNames = (
targetTagName,
enableFixer,
jsdoc, jsdocNode, utils,
jsdoc, utils,
) => {
const propertyTags = Object.entries(jsdoc.tags).filter(([
, tag,
Expand Down Expand Up @@ -95,7 +94,6 @@ const validatePropertyNamesDeep = (
export default iterateJsdoc(({
context,
jsdoc,
jsdocNode,
report,
utils,
}) => {
Expand All @@ -114,7 +112,6 @@ export default iterateJsdoc(({
targetTagName,
enableFixer,
jsdoc,
jsdocNode,
utils,
);

Expand Down

0 comments on commit 1c9884d

Please sign in to comment.