refactor(deps): use different approach for eslint

This commit is contained in:
Elian Doran
2025-03-08 02:37:29 +02:00
parent c4f8e9605f
commit 0273fad0ba
6 changed files with 14 additions and 112897 deletions

View File

@@ -35,17 +35,13 @@
return [];
}
await glob.requireLibrary(glob.ESLINT);
if (text.length > 20000) {
console.log("Skipping linting because of large size: ", text.length);
return [];
}
const errors = new eslint().verify(text, {
});
const errors = await glob.linter(text);
console.log(errors);