Skip to content

Commit

Permalink
enable jsdoc/check-alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Dec 27, 2022
1 parent fe20657 commit b34878a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ module.exports = {
'jsdoc/tag-lines': 0,
'jsdoc/require-jsdoc': 0,
'jsdoc/require-param-description': 0,
'jsdoc/check-alignment': 0,
'jsdoc/require-returns': 0,
'jsdoc/require-property-description': 0,
// jsdoc problematics
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/string-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const getStringInBraces = (str) => {
* Prepares RTCPeerConnection config as string for proper logging
* @param {*} config
* @returns {string} stringified config
*/
*/
export const convertRtcConfigToString = (config) => {
const UNDEF_STR = 'undefined';
let str = UNDEF_STR;
Expand Down
32 changes: 16 additions & 16 deletions src/helpers/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,37 +340,37 @@ const isRedirectRuleByType = (rule, type) => {
};

/**
* Checks if the `rule` is **valid** AdGuard redirect resource rule
* @param {string} rule - rule text
* @returns {boolean}
*/
* Checks if the `rule` is **valid** AdGuard redirect resource rule
* @param {string} rule - rule text
* @returns {boolean}
*/
const isValidAdgRedirectRule = (rule) => {
return isRedirectRuleByType(rule, 'VALID_ADG');
};

/**
* Checks if the AdGuard redirect `rule` has Ubo analog. Needed for Adg->Ubo conversion
* @param {string} rule - AdGuard rule text
* @returns {boolean} - true if the rule can be converted to Ubo
*/
* Checks if the AdGuard redirect `rule` has Ubo analog. Needed for Adg->Ubo conversion
* @param {string} rule - AdGuard rule text
* @returns {boolean} - true if the rule can be converted to Ubo
*/
const isAdgRedirectCompatibleWithUbo = (rule) => {
return isAdgRedirectRule(rule) && isRedirectRuleByType(rule, 'ADG');
};

/**
* Checks if the Ubo redirect `rule` has AdGuard analog. Needed for Ubo->Adg conversion
* @param {string} rule - Ubo rule text
* @returns {boolean} - true if the rule can be converted to AdGuard
*/
* Checks if the Ubo redirect `rule` has AdGuard analog. Needed for Ubo->Adg conversion
* @param {string} rule - Ubo rule text
* @returns {boolean} - true if the rule can be converted to AdGuard
*/
const isUboRedirectCompatibleWithAdg = (rule) => {
return isRedirectRuleByType(rule, 'UBO');
};

/**
* Checks if the Abp redirect `rule` has AdGuard analog. Needed for Abp->Adg conversion
* @param {string} rule - Abp rule text
* @returns {boolean} - true if the rule can be converted to AdGuard
*/
* Checks if the Abp redirect `rule` has AdGuard analog. Needed for Abp->Adg conversion
* @param {string} rule - Abp rule text
* @returns {boolean} - true if the rule can be converted to AdGuard
*/
const isAbpRedirectCompatibleWithAdg = (rule) => {
return isRedirectRuleByType(rule, 'ABP');
};
Expand Down
2 changes: 1 addition & 1 deletion src/scriptlets/prevent-addEventListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
* ```
* example.org#%#//scriptlet('prevent-addEventListener', 'click')
* ```
*
2. Prevent 'click' listeners with the callback body containing `searchString`.
* ```
* example.org#%#//scriptlet('prevent-addEventListener', 'click', 'searchString')
Expand Down

0 comments on commit b34878a

Please sign in to comment.