mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 19:43:20 +08:00
cleanup ignore lint errors: no-var-keyword, prefer-const
This commit is contained in:
@@ -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");
|
||||
|
||||
4
types/glob/index.d.ts
vendored
4
types/glob/index.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user