feat(unstable): support multiple fixes from lint plugins (#28040)

This PR supports returning multiple changes from a lint fix. It works
the same way as eslint, see
https://eslint.org/docs/latest/extend/custom-rules#applying-fixes .

- Return a single fix
- Return an array of fixes
- Return a generator function with fixes
This commit is contained in:
Marvin Hagemeister 2025-02-11 15:24:28 +01:00 committed by GitHub
parent 196ceb76bb
commit aead459fb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 111 additions and 20 deletions

View file

@ -1388,7 +1388,7 @@ declare namespace Deno {
range?: Range;
message: string;
hint?: string;
fix?(fixer: Fixer): FixData;
fix?(fixer: Fixer): FixData | Iterable<FixData>;
}
/**