From ea84031f72423ed5a4bac3788b5d4eb10c068add Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Fri, 14 Aug 2020 13:59:51 +1000 Subject: [PATCH] WIP --- .eslintignore | 5 +++-- cli/lint.rs | 4 +--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.eslintignore b/.eslintignore index a1d26dbe9e945c..a0da70ba685f59 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,7 +1,8 @@ cli/compilers/wasm_wrap.js +cli/dts/* cli/tests/error_syntax.js +cli/tsc/*typescript.js +compiler/fixtures std/deno.d.ts std/**/testdata/ std/**/node_modules/ -cli/tsc/*typescript.js -cli/dts/* diff --git a/cli/lint.rs b/cli/lint.rs index 5b78df28987e47..4e12d582ce8d5e 100644 --- a/cli/lint.rs +++ b/cli/lint.rs @@ -278,9 +278,7 @@ impl LintReporter for JsonLintReporter { fn close(&mut self) { // Sort so that we guarantee a deterministic output which is useful for tests - self - .diagnostics - .sort_by_key(|key| get_sort_key(&key)); + self.diagnostics.sort_by_key(|key| get_sort_key(&key)); let json = serde_json::to_string_pretty(&self); eprintln!("{}", json.unwrap());