Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/rules/no_implicit_declare_namespace_export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ pub struct NoImplicitDeclareNamespaceExport;

const CODE: &str = "no-implicit-declare-namespace-export";
const MESSAGE: &str =
"Implicit exports in ambient namespaces are discouraged to
use";
"Implicit exports in ambient namespaces are discouraged to use";
const HINT: &str = "Try adding an `export {};` to the top of the namespace to disable this behavior";

impl LintRule for NoImplicitDeclareNamespaceExport {
Expand Down
3 changes: 1 addition & 2 deletions src/rules/no_import_prefix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ use deno_ast::SourceRanged;
pub struct NoImportPrefix;

const CODE: &str = "no-import-prefix";
const MESSAGE: &str =
"Inline 'npm:', 'jsr:' or 'https:' dependency not allowed";
const MESSAGE: &str = "Inline 'npm:', 'jsr:' or 'https:' dependency discouraged in non-single file projects";
const HINT: &str = "Add it as a dependency in a deno.json or package.json instead and reference it here via its bare specifier";

impl LintRule for NoImportPrefix {
Expand Down
Loading