Skip to content

Commit 0a048eb

Browse files
committed
Address eslint warnings
1 parent 3360d3e commit 0a048eb

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

platform/mv3/make-rulesets.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,17 @@
1919
Home: https://github.com/gorhill/uBlock
2020
*/
2121

22-
'use strict';
22+
import * as makeScriptlet from './make-scriptlets.js';
23+
import * as sfp from './js/static-filtering-parser.js';
2324

24-
/******************************************************************************/
25+
import { createHash, randomBytes } from 'crypto';
2526

27+
import { dnrRulesetFromRawLists } from './js/static-dnr-filtering.js';
2628
import fs from 'fs/promises';
2729
import https from 'https';
2830
import path from 'path';
2931
import process from 'process';
30-
import { createHash, randomBytes } from 'crypto';
3132
import redirectResourcesMap from './js/redirect-resources.js';
32-
import { dnrRulesetFromRawLists } from './js/static-dnr-filtering.js';
33-
import * as sfp from './js/static-filtering-parser.js';
34-
import * as makeScriptlet from './make-scriptlets.js';
3533
import { safeReplace } from './safe-replace.js';
3634

3735
/******************************************************************************/
@@ -106,8 +104,7 @@ const log = (text, silent = false) => {
106104
const urlToFileName = url => {
107105
return url
108106
.replace(/^https?:\/\//, '')
109-
.replace(/\//g, '_')
110-
;
107+
.replace(/\//g, '_');
111108
};
112109

113110
const fetchText = (url, cacheDir) => {
@@ -365,8 +362,7 @@ async function processNetworkFilters(assetDetails, network) {
365362
log(plainGood
366363
.filter(rule => Array.isArray(rule._warning))
367364
.map(rule => rule._warning.map(v => `\t\t${v}`))
368-
.join('\n'),
369-
true
365+
.join('\n'), true
370366
);
371367

372368
const regexes = rules.filter(rule => isGood(rule) && isRegex(rule));

0 commit comments

Comments
 (0)