Chore: introduce eslint to build script

This commit is contained in:
SukkaW
2023-07-12 23:14:20 +08:00
parent aeb90e36ca
commit 09961fad44
20 changed files with 299 additions and 190 deletions

View File

@@ -72,10 +72,10 @@ const validateRuleset = async (filePath) => {
}
}
}
}
};
(async () => {
const [domainsetFiles, rulesetFiles] = await Promise.all([
const [domainsetFiles, _rulesetFiles] = await Promise.all([
listDir(path.resolve(__dirname, '../List/domainset')),
listDir(path.resolve(__dirname, '../List/non_ip'))
]);
@@ -84,4 +84,3 @@ const validateRuleset = async (filePath) => {
// rulesetFiles.map(file => validateRuleset(file))
);
})();