Skip to content

Commit

Permalink
Addressing minor eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
caroline223 committed Jul 24, 2022
1 parent 3e61030 commit 929a705
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions lib/rules/jsx-boolean-value.js
Expand Up @@ -34,21 +34,25 @@ function getErrorData(exceptions) {
}
return errorData.get(exceptions);
}

/**
* @param {string} configuration
* @param {Set<any>} exceptions
* @param {string} propName
* @returns {boolean} propName
*/
* @param {string} configuration
* @param {Set<any>} exceptions
* @param {string} propName
* @returns {boolean} propName
*/
function isAlways(configuration, exceptions, propName) {
const isException = exceptions.has(propName);
if (configuration === ALWAYS) {
return !isException;
}
return isException;
}

/**
* @param {string} configuration
* @param {Set<any>} exceptions
* @param {string} propName
* @returns {boolean} propName
*/
function isNever(configuration, exceptions, propName) {
const isException = exceptions.has(propName);
if (configuration === NEVER) {
Expand Down Expand Up @@ -108,7 +112,6 @@ module.exports = {
}],
},
},

create(context) {
const configuration = context.options[0] || NEVER;
const configObject = context.options[1] || {};
Expand Down

0 comments on commit 929a705

Please sign in to comment.