Skip to content

Commit 006c4be

Browse files
committed
fix lints
Squashed commit of the following: commit 4adfdb0 Author: slvvko <v.leleka@adguard.com> Date: Tue Mar 24 15:18:29 2026 -0400 fix lints
1 parent 978bf5a commit 006c4be

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/redirects/freewheel-admanager.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { hit, noopFunc, noopThis } from '../helpers';
1818
export function FreewheelAdManager(source) {
1919
const eventsMap = new Map();
2020
const adManagerFunc = noopFunc;
21+
// eslint-disable-next-line func-names
2122
adManagerFunc.prototype.addEventListener = function (type, callback) {
2223
if (type) {
2324
eventsMap.set(type, callback);

src/scriptlets/trusted-json-set.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ import { type Source } from './scriptlets';
110110
*
111111
* ### Examples
112112
*
113+
* <!-- markdownlint-disable line-length -->
114+
*
113115
* 1. Sets `ads.enabled` to `false` in the result of `JSON.parse`
114116
*
115117
* ```adblock
@@ -308,6 +310,8 @@ import { type Source } from './scriptlets';
308310
* { ads: { enabled: false }, content: 'article' }
309311
* ```
310312
*
313+
* <!-- markdownlint-enable line-length -->
314+
*
311315
* @added v2.3.0.
312316
*/
313317
/* eslint-enable max-len */

wiki/about-trusted-scriptlets.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,8 @@ example.org#%#//scriptlet('trusted-json-set', methodPath, propsPath, argumentVal
450450
451451
### Examples
452452

453+
<!-- markdownlint-disable line-length -->
454+
453455
1. Sets `ads.enabled` to `false` in the result of `JSON.parse`
454456

455457
```adblock
@@ -648,6 +650,8 @@ example.org#%#//scriptlet('trusted-json-set', methodPath, propsPath, argumentVal
648650
{ ads: { enabled: false }, content: 'article' }
649651
```
650652
653+
<!-- markdownlint-enable line-length -->
654+
651655
[Scriptlet source](../src/scriptlets/trusted-json-set.ts)
652656
653657
* * *

0 commit comments

Comments
 (0)