Skip to content

Commit

Permalink
refactor: apply (jsdoc-related) eslint rule fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Jul 12, 2019
1 parent e5767d3 commit cd35adb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/eslint/getJSDocComment.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Obtained originally from {@link https://github.com/eslint/eslint/blob/master/lib/util/source-code.js#L313}
*
* @license MIT
*/

Expand Down
6 changes: 3 additions & 3 deletions src/iterateJsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ const getSettings = (context) => {
/**
* Create the report function
*
* @param {Object} context
* @param {Object} commentNode
* @param {object} context
* @param {object} commentNode
*/
const makeReport = (context, commentNode) => {
const report = (message, fix = null, jsdocLoc = null, data = null) => {
Expand Down Expand Up @@ -378,7 +378,7 @@ export default function iterateJsdoc (iterator, ruleConfig) {
* @param {*} context
* a reference to the context which hold all important information
* like settings and the sourcecode to check.
* @returns {Object}
* @returns {object}
* a list with parser callback function.
*/
create (context) {
Expand Down
4 changes: 2 additions & 2 deletions src/jsdocUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,9 @@ const lookupTable = {
* It traverses the parsed source code and returns as
* soon as it stumbles upon the first return statement.
*
* @param {Object} node
* @param {object} node
* the node which should be checked.
* @param {Object} context
* @param {object} context
* @param {boolean} ignoreAsync
* ignore implicit async return.
* @returns {boolean}
Expand Down
8 changes: 4 additions & 4 deletions src/warnRemovedSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
* )} RulesWithMovedSettings
*/

/** @type {WeakMap<Object, Set<string>>} */
/** @type {WeakMap<object, Set<string>>} */
const warnedSettings = new WeakMap();

/**
* Warn only once for each context and setting
*
* @param {Object} context
* @param {object} context
* @param {string} setting
*/
const hasBeenWarned = (context, setting) => {
Expand All @@ -30,7 +30,7 @@ const markSettingAsWarned = (context, setting) => {
};

/**
* @param {Object} obj
* @param {object} obj
* @param {string} property
* @returns {boolean}
*/
Expand Down Expand Up @@ -73,7 +73,7 @@ const getMovedSettings = (ruleName) => {
};

/**
* @param {Object} context
* @param {object} context
* @param {RulesWithMovedSettings} ruleName
*/
export default function warnRemovedSettings (context, ruleName) {
Expand Down

0 comments on commit cd35adb

Please sign in to comment.