Make ESLint Happy

This commit is contained in:
SukkaW
2023-12-03 02:04:09 +08:00
parent 34ef0e58ff
commit d4ff4c5b2d
36 changed files with 136 additions and 140 deletions

View File

@@ -11,15 +11,10 @@ export const buildDomesticRuleset = task(import.meta.path, async () => {
const results = await processLineFromReadline(readFileByLine(path.resolve(import.meta.dir, '../Source/non_ip/domestic.conf')));
results.push(
...Object.entries(DOMESTICS)
.reduce<string[]>(
(acc, [key, { domains }]) => {
if (key === 'SYSTEM') return acc;
return [...acc, ...domains];
},
[]
)
.map((domain) => `DOMAIN-SUFFIX,${domain}`)
...Object.entries(DOMESTICS).reduce<string[]>((acc, [key, { domains }]) => {
if (key === 'SYSTEM') return acc;
return [...acc, ...domains];
}, []).map((domain) => `DOMAIN-SUFFIX,${domain}`)
);
const rulesetDescription = [