deno_lint
deno_lint copied to clipboard
Rule suggestion: Restrict usage of remote scripts
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.
Seems reasonable as a non-recommended rule. Contributions are very welcome.