mirror of
https://github.com/denoland/deno.git
synced 2024-12-30 02:59:11 -05:00
147411e64b
Adds much better support for the unstable Deno workspaces as well as support for npm workspaces. npm workspaces is still lacking in that we only install packages into the root node_modules folder. We'll make it smarter over time in order for it to figure out when to add node_modules folders within packages. This includes a breaking change in config file resolution where we stop searching for config files on the first found package.json unless it's in a workspace. For the previous behaviour, the root deno.json needs to be updated to be a workspace by adding `"workspace": ["./path-to-pkg-json-folder-goes-here"]`. See details in https://github.com/denoland/deno_config/pull/66 Closes #24340 Closes #24159 Closes #24161 Closes #22020 Closes #18546 Closes #16106 Closes #24160
82 lines
1.9 KiB
Text
82 lines
1.9 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://lint.deno.land/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://lint.deno.land/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://lint.deno.land/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://lint.deno.land/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://lint.deno.land/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://lint.deno.land/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://lint.deno.land/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://lint.deno.land/rules/no-unused-vars
|
|
|
|
|
|
Found 8 problems
|
|
Checked 3 files
|