diff --git a/types/glob/glob-tests.ts b/types/glob/glob-tests.ts index 47b899cf8e..a9024e905d 100644 --- a/types/glob/glob-tests.ts +++ b/types/glob/glob-tests.ts @@ -1,21 +1,21 @@ import glob = require("glob"); -var Glob = glob.Glob; +const Glob = glob.Glob; (() => { - var pattern = "test/a/**/[cg]/../[cg]"; + const pattern = "test/a/**/[cg]/../[cg]"; console.log(pattern); - var mg = new Glob(pattern, {mark: true, sync: true}, function(er, matches) { + const mg = new Glob(pattern, {mark: true, sync: true}, function(er, matches) { console.log("matches", matches); }); console.log("after"); })(); (() => { - var pattern = "{./*/*,/*,/usr/local/*}"; + const pattern = "{./*/*,/*,/usr/local/*}"; console.log(pattern); - var mg = new Glob(pattern, {mark: true}, function(er, matches) { + const mg = new Glob(pattern, {mark: true}, function(er, matches) { console.log("matches", matches); }); console.log("after"); diff --git a/types/glob/index.d.ts b/types/glob/index.d.ts index c78ccc3d6a..13e193fc63 100644 --- a/types/glob/index.d.ts +++ b/types/glob/index.d.ts @@ -19,8 +19,8 @@ declare namespace G { function hasMagic(pattern: string, options?: IOptions): boolean; - var Glob: IGlobStatic; - var GlobSync: IGlobSyncStatic; + let Glob: IGlobStatic; + let GlobSync: IGlobSyncStatic; interface IOptions extends minimatch.IOptions { cwd?: string; diff --git a/types/glob/tslint.json b/types/glob/tslint.json index 7220242756..12936d1b7b 100644 --- a/types/glob/tslint.json +++ b/types/glob/tslint.json @@ -3,8 +3,6 @@ "rules": { "interface-name": false, "no-reference-import": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false + "only-arrow-functions": false } }