mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 10:33:54 +00:00
feat: TypeScript 5.0.2 (except decorators) (#18294)
This upgrades TypeScript to 5.0.2, but does not have ES decorator support because swc does not support that yet.
This commit is contained in:
parent
0366d6833f
commit
2fcf1f14cf
111 changed files with 173492 additions and 178485 deletions
|
@ -35,6 +35,7 @@ use serde::Serialize;
|
|||
use std::fs;
|
||||
use std::io::stdin;
|
||||
use std::io::Read;
|
||||
use std::path::Path;
|
||||
use std::path::PathBuf;
|
||||
use std::sync::atomic::AtomicBool;
|
||||
use std::sync::atomic::Ordering;
|
||||
|
@ -245,12 +246,12 @@ pub fn create_linter(
|
|||
}
|
||||
|
||||
fn lint_file(
|
||||
file_path: &PathBuf,
|
||||
file_path: &Path,
|
||||
source_code: String,
|
||||
lint_rules: Vec<&'static dyn LintRule>,
|
||||
) -> Result<(Vec<LintDiagnostic>, String), AnyError> {
|
||||
let file_name = file_path.to_string_lossy().to_string();
|
||||
let media_type = MediaType::from(file_path);
|
||||
let media_type = MediaType::from_path(file_path);
|
||||
|
||||
let linter = create_linter(media_type, lint_rules);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue