Deprecate LintResults.toString() (at edit time; continue to support at run time), provide helper function formatLintResults, remove outdated grunt/gulp samples, improve typing.
Some checks failed
Checkers / linkcheck (push) Has been cancelled
Checkers / spellcheck (push) Has been cancelled
CI / build (20, macos-latest) (push) Has been cancelled
CI / build (20, ubuntu-latest) (push) Has been cancelled
CI / build (20, windows-latest) (push) Has been cancelled
CI / build (22, macos-latest) (push) Has been cancelled
CI / build (22, ubuntu-latest) (push) Has been cancelled
CI / build (22, windows-latest) (push) Has been cancelled
CI / build (24, macos-latest) (push) Has been cancelled
CI / build (24, ubuntu-latest) (push) Has been cancelled
CI / build (24, windows-latest) (push) Has been cancelled
CI / pnpm (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
TestRepos / build (latest, ubuntu-latest) (push) Has been cancelled
UpdateTestRepos / update (push) Has been cancelled

This commit is contained in:
David Anson 2025-09-08 21:09:35 -07:00
parent 2a06f0a871
commit 616c3f2c22
18 changed files with 161 additions and 207 deletions

View file

@ -18,18 +18,18 @@ const options = {
if (true) {
// Makes a synchronous call, uses result.toString for pretty formatting
// Makes a synchronous call
const results = lintSync(options);
console.log(results.toString());
console.dir(results, { "colors": true, "depth": null });
}
if (true) {
// Makes an asynchronous call, uses result.toString for pretty formatting
// Makes an asynchronous call
lintAsync(options, function callback(error, results) {
if (!error && results) {
console.log(results.toString());
console.dir(results, { "colors": true, "depth": null });
}
});
@ -37,7 +37,7 @@ if (true) {
if (true) {
// Makes a Promise-based asynchronous call, displays the result object directly
// Makes a Promise-based asynchronous call
const results = await lintPromise(options);
console.dir(results, { "colors": true, "depth": null });