1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 10:07:54 -05:00
denoland-deno/tests/testdata/lint/with_config_and_flags.out
David Sherret ffbcad3800
feat(lint): deno lint --fix and lsp quick fixes (#22615)
Adds a `--fix` option to deno lint. This currently doesn't work for
basically any rules, but we can add them over time to deno lint.
2024-03-21 14:18:59 -07:00

22 lines
677 B
Text

error[ban-untagged-todo]: TODO should be tagged with (@username) or (#issue)
--> [WILDCARD]b.ts:1:1
|
1 | // TODO: this file should be ignored
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= hint: Add a user tag or issue reference to the TODO comment, e.g. TODO(@djones), TODO(djones), TODO(#123)
docs: https://lint.deno.land/rules/ban-untagged-todo
error[no-unused-vars]: `subtract` is never used
--> [WILDCARD]b.ts:2:10
|
2 | function subtract(a: number, b: number): number {
| ^^^^^^^^
= hint: If this is intentional, prefix it with an underscore like `_subtract`
docs: https://lint.deno.land/rules/no-unused-vars
Found 2 problems
Checked 1 file