Sort imports and requires (#3056)

This will definitely save time, and ensure more uniformity.

It moves the `createServiceTester()` calls to a different place from where I'd like them, though I'm happy to have them checked by the linter.

Closes #2701
This commit is contained in:
Paul Melnikow
2019-02-21 22:14:40 -05:00
committed by GitHub
parent f6628e62b7
commit 4bd16f93e8
168 changed files with 81 additions and 200 deletions

View File

@@ -3,7 +3,6 @@
const { toSvgColor } = require('../gh-badges/lib/color')
const coalesce = require('../core/base-service/coalesce')
const { svg2base64 } = require('./svg-helpers')
const logos = require('./load-logos')()
const simpleIcons = require('./load-simple-icons')()

View File

@@ -2,6 +2,8 @@
const fs = require('fs')
const path = require('path')
const config = require('config').util.toObject()
const legacySecretsPath = path.join(__dirname, '..', 'private', 'secret.json')
if (fs.existsSync(legacySecretsPath)) {
console.error(
@@ -10,6 +12,4 @@ if (fs.existsSync(legacySecretsPath)) {
process.exit(1)
}
const config = require('config').util.toObject()
module.exports = config.private