deno_lint icon indicating copy to clipboard operation
deno_lint copied to clipboard

Rule suggestion: Restrict usage of remote scripts

Open stabai opened this issue 1 year ago • 1 comments

This may sound like an odd request, but it would be nice to be able to disable remote module imports in script files. If using either an import map or a deps.ts file, it can be a good practice to ensure all remote dependencies are listed there for managing licenses, security checks, etc. The deps.ts file can be excluded from this rule by the deno config file, thus ensuring that a lint error will be thrown for any ad hoc remote dependencies in normal script files.

stabai avatar Jul 14 '22 19:07 stabai

Seems reasonable as a non-recommended rule. Contributions are very welcome.

bartlomieju avatar May 10 '24 00:05 bartlomieju