Remove log
from global
This commit is contained in:
parent
6bbe569dac
commit
472d618033
@ -86,7 +86,4 @@ rules:
|
||||
template-curly-spacing: error
|
||||
yoda: error
|
||||
|
||||
globals:
|
||||
log: false
|
||||
|
||||
extends: eslint:recommended
|
||||
|
@ -1,6 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
const _ = require("lodash");
|
||||
const log = require("./log");
|
||||
const colors = require("chalk");
|
||||
const Chan = require("./models/chan");
|
||||
const crypto = require("crypto");
|
||||
|
@ -1,6 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
const _ = require("lodash");
|
||||
const log = require("./log");
|
||||
const colors = require("chalk");
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
@ -1,8 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
global.log = require("../log.js");
|
||||
|
||||
const _ = require("lodash");
|
||||
const log = require("../log");
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const program = require("commander");
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../log");
|
||||
const colors = require("chalk");
|
||||
const program = require("commander");
|
||||
const Helper = require("../helper");
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../log");
|
||||
const colors = require("chalk");
|
||||
const fs = require("fs");
|
||||
const fsextra = require("fs-extra");
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../log");
|
||||
const colors = require("chalk");
|
||||
const path = require("path");
|
||||
const program = require("commander");
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../log");
|
||||
const colors = require("chalk");
|
||||
const program = require("commander");
|
||||
const Helper = require("../helper");
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../../log");
|
||||
const colors = require("chalk");
|
||||
const program = require("commander");
|
||||
const fs = require("fs");
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../../log");
|
||||
const program = require("commander");
|
||||
const child = require("child_process");
|
||||
const colors = require("chalk");
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../../log");
|
||||
const colors = require("chalk");
|
||||
const program = require("commander");
|
||||
const fs = require("fs");
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../../log");
|
||||
const colors = require("chalk");
|
||||
const program = require("commander");
|
||||
const fs = require("fs");
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../../log");
|
||||
const colors = require("chalk");
|
||||
const program = require("commander");
|
||||
const fs = require("fs");
|
||||
|
@ -1,6 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
const _ = require("lodash");
|
||||
const log = require("../log");
|
||||
const colors = require("chalk");
|
||||
const fs = require("fs");
|
||||
const Helper = require("../helper");
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
const pkg = require("../package.json");
|
||||
const _ = require("lodash");
|
||||
const log = require("./log");
|
||||
const path = require("path");
|
||||
const os = require("os");
|
||||
const fs = require("fs");
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("./log");
|
||||
const fs = require("fs");
|
||||
const net = require("net");
|
||||
const colors = require("chalk");
|
||||
|
@ -1,6 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
const _ = require("lodash");
|
||||
const log = require("../log");
|
||||
const Helper = require("../helper");
|
||||
const User = require("./user");
|
||||
const Msg = require("./msg");
|
||||
|
@ -1,6 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
const _ = require("lodash");
|
||||
const log = require("../log");
|
||||
const uuidv4 = require("uuid/v4");
|
||||
const IrcFramework = require("irc-framework");
|
||||
const Chan = require("./chan");
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../../log");
|
||||
const Helper = require("../../helper");
|
||||
|
||||
// Forked ldapjs for 2 reasons:
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../../log");
|
||||
const Helper = require("../../helper");
|
||||
const colors = require("chalk");
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
const _ = require("lodash");
|
||||
const log = require("../../log");
|
||||
const Msg = require("../../models/msg");
|
||||
const Chan = require("../../models/chan");
|
||||
const Helper = require("../../helper");
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../../log");
|
||||
const path = require("path");
|
||||
const fsextra = require("fs-extra");
|
||||
const Helper = require("../../helper");
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../../log");
|
||||
const fs = require("fs");
|
||||
const fsextra = require("fs-extra");
|
||||
const path = require("path");
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../../log");
|
||||
const colors = require("chalk");
|
||||
const path = require("path");
|
||||
const Helper = require("../../helper");
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../log");
|
||||
const fs = require("fs");
|
||||
const fsextra = require("fs-extra");
|
||||
const path = require("path");
|
||||
|
@ -1,6 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
const _ = require("lodash");
|
||||
const log = require("../log");
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const WebPushAPI = require("web-push");
|
||||
|
@ -1,6 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
const _ = require("lodash");
|
||||
const log = require("./log");
|
||||
const pkg = require("../package.json");
|
||||
const Client = require("./client");
|
||||
const ClientManager = require("./clientManager");
|
||||
|
2
test/fixtures/env.js
vendored
2
test/fixtures/env.js
vendored
@ -1,6 +1,4 @@
|
||||
"use strict";
|
||||
|
||||
global.log = require("../../src/log.js");
|
||||
|
||||
const home = require("path").join(__dirname, ".thelounge");
|
||||
require("../../src/helper").setHome(home);
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../../../src/log");
|
||||
const ldapAuth = require("../../../src/plugins/auth/ldap");
|
||||
const Helper = require("../../../src/helper");
|
||||
const ldap = require("thelounge-ldapjs-non-maintained-fork");
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../../../src/log");
|
||||
const expect = require("chai").expect;
|
||||
const stub = require("sinon").stub;
|
||||
const TestUtil = require("../../util");
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../src/log");
|
||||
const Helper = require("../src/helper");
|
||||
const expect = require("chai").expect;
|
||||
const request = require("request");
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../../../src/log");
|
||||
const expect = require("chai").expect;
|
||||
const stub = require("sinon").stub;
|
||||
const TestUtil = require("../../util");
|
||||
|
@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const log = require("../../src/log");
|
||||
const expect = require("chai").expect;
|
||||
const mergeConfig = require("../../src/helper").mergeConfig;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user