mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
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:
parent
196ceb76bb
commit
aead459fb2
10 changed files with 111 additions and 20 deletions
2
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
2
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
|
@ -1388,7 +1388,7 @@ declare namespace Deno {
|
|||
range?: Range;
|
||||
message: string;
|
||||
hint?: string;
|
||||
fix?(fixer: Fixer): FixData;
|
||||
fix?(fixer: Fixer): FixData | Iterable<FixData>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue