mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
lint
This commit is contained in:
parent
f5aecf838a
commit
a0aa8113e5
2 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ pub const IGNORED_RUNTIME_COMPILER_OPTIONS: &[&str] = &[
|
|||
];
|
||||
|
||||
/// Filenames that Deno will recognize when discovering config.
|
||||
const CONFIG_FILE_NAMES: [&'static str; 2] = ["deno.json", "deno.jsonc"];
|
||||
const CONFIG_FILE_NAMES: [&str; 2] = ["deno.json", "deno.jsonc"];
|
||||
|
||||
pub fn discover(flags: &crate::Flags) -> Result<Option<ConfigFile>, AnyError> {
|
||||
if let Some(config_path) = flags.config_path.as_ref() {
|
||||
|
|
|
@ -364,7 +364,7 @@ impl Flags {
|
|||
} else if let Lint(LintFlags { files, .. }) = &self.subcommand {
|
||||
files.clone()
|
||||
} else if let Run(RunFlags { script }) = &self.subcommand {
|
||||
if let Ok(module_specifier) = deno_core::resolve_url_or_path(&script) {
|
||||
if let Ok(module_specifier) = deno_core::resolve_url_or_path(script) {
|
||||
if let Ok(p) = module_specifier.to_file_path() {
|
||||
vec![p]
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue