From c85138726596ee201791a9be12908b52d7667d92 Mon Sep 17 00:00:00 2001 From: segayuu Date: Fri, 8 Dec 2017 11:41:59 +0900 Subject: [PATCH] cleanup ignore lint error: no-var-keyword --- types/minimatch/index.d.ts | 2 +- types/minimatch/minimatch-tests.ts | 18 +++++++++--------- types/minimatch/tslint.json | 1 - 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/types/minimatch/index.d.ts b/types/minimatch/index.d.ts index 5c9bd38a28..d5942d536b 100644 --- a/types/minimatch/index.d.ts +++ b/types/minimatch/index.d.ts @@ -27,7 +27,7 @@ declare namespace M { */ function makeRe(pattern: string, options?: IOptions): RegExp; - var Minimatch: IMinimatchStatic; + let Minimatch: IMinimatchStatic; interface IOptions { /** diff --git a/types/minimatch/minimatch-tests.ts b/types/minimatch/minimatch-tests.ts index 5b7a3bdb18..def9a43310 100644 --- a/types/minimatch/minimatch-tests.ts +++ b/types/minimatch/minimatch-tests.ts @@ -1,17 +1,17 @@ import mm = require("minimatch"); - -var pattern = "**/*.ts"; -var options = { +let b: boolean; +let pattern = "**/*.ts"; +let options = { debug: true }; -var m = new mm.Minimatch(pattern, options); -var r = m.makeRe(); +let m = new mm.Minimatch(pattern, options); +let r = m.makeRe(); -var f = ["test.ts"]; +let f = ["test.ts"]; mm.match(f, pattern, options); f.filter(mm.filter(pattern, options)); -var s: string = "hello"; -var b: boolean = mm(s, pattern, options); -var b: boolean = mm(s, pattern); +let s: string = "hello"; +b = mm(s, pattern, options); +b = mm(s, pattern); diff --git a/types/minimatch/tslint.json b/types/minimatch/tslint.json index 79acfd4fbe..d3e917b578 100644 --- a/types/minimatch/tslint.json +++ b/types/minimatch/tslint.json @@ -5,7 +5,6 @@ "no-duplicate-variable": false, "no-inferrable-types": false, "no-redundant-jsdoc-2": false, - "no-var-keyword": false, "prefer-const": false } }