cleanup ignore lint errors: no-var-keyword, prefer-const

This commit is contained in:
segayuu
2017-12-04 11:23:35 +09:00
parent ccb1efa317
commit 4013fc4aa8
3 changed files with 8 additions and 10 deletions

View File

@@ -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");

View File

@@ -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;

View File

@@ -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
}
}