mirror of
https://github.com/denoland/deno.git
synced 2025-02-08 07:16:56 -05:00
21e8260cc9
This PR updates `deno_lint` which contains a couple of bug fixes for JSX/React related rules. The react rules now have all a `react-*` prefix in the name as well.
82 lines
2 KiB
Text
82 lines
2 KiB
Text
error[no-eval]: `eval` call is not allowed
|
|
--> [WILDLINE]root.ts:1:1
|
|
|
|
|
1 | eval("");
|
|
| ^^^^^^^^
|
|
= hint: Remove the use of `eval`
|
|
|
|
docs: https://docs.deno.com/lint/rules/no-eval
|
|
|
|
|
|
error[no-unused-vars]: `unused` is never used
|
|
--> [WILDLINE]root.ts:7:7
|
|
|
|
|
7 | const unused = 1;
|
|
| ^^^^^^
|
|
= hint: If this is intentional, prefix it with an underscore like `_unused`
|
|
|
|
docs: https://docs.deno.com/lint/rules/no-unused-vars
|
|
|
|
|
|
error[no-explicit-any]: `any` type is not allowed
|
|
--> [WILDLINE]root.ts:9:25
|
|
|
|
|
9 | export function test(): any {
|
|
| ^^^
|
|
= hint: Use a specific type other than `any`
|
|
|
|
docs: https://docs.deno.com/lint/rules/no-explicit-any
|
|
|
|
|
|
error[no-eval]: `eval` call is not allowed
|
|
--> [WILDLINE]package-a[WILDCHAR]a.ts:1:1
|
|
|
|
|
1 | eval("");
|
|
| ^^^^^^^^
|
|
= hint: Remove the use of `eval`
|
|
|
|
docs: https://docs.deno.com/lint/rules/no-eval
|
|
|
|
|
|
error[no-await-in-loop]: Unexpected `await` inside a loop.
|
|
--> [WILDLINE]package-a[WILDCHAR]a.ts:4:3
|
|
|
|
|
4 | await Deno.open("test");
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
= hint: Remove `await` in loop body, store all promises generated and then `await Promise.all(storedPromises)` after the loop
|
|
|
|
docs: https://docs.deno.com/lint/rules/no-await-in-loop
|
|
|
|
|
|
error[no-explicit-any]: `any` type is not allowed
|
|
--> [WILDLINE]package-a[WILDCHAR]a.ts:9:25
|
|
|
|
|
9 | export function test(): any {
|
|
| ^^^
|
|
= hint: Use a specific type other than `any`
|
|
|
|
docs: https://docs.deno.com/lint/rules/no-explicit-any
|
|
|
|
|
|
error[no-eval]: `eval` call is not allowed
|
|
--> [WILDLINE]package-b[WILDCHAR]b.ts:1:1
|
|
|
|
|
1 | eval("");
|
|
| ^^^^^^^^
|
|
= hint: Remove the use of `eval`
|
|
|
|
docs: https://docs.deno.com/lint/rules/no-eval
|
|
|
|
|
|
error[no-unused-vars]: `unused` is never used
|
|
--> [WILDLINE]b.ts:7:7
|
|
|
|
|
7 | const unused = 1;
|
|
| ^^^^^^
|
|
= hint: If this is intentional, prefix it with an underscore like `_unused`
|
|
|
|
docs: https://docs.deno.com/lint/rules/no-unused-vars
|
|
|
|
|
|
Found 8 problems
|
|
Checked 3 files
|