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:
@@ -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')()
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user