Fix(lint): Add import eslint and fix import errors

This commit is contained in:
Berkeley Martinez
2016-06-23 20:05:30 -07:00
parent cc0543d5df
commit 668bd74690
27 changed files with 103 additions and 144 deletions

View File

@ -1,7 +1,9 @@
import request from 'request';
import constantStrings from '../utils/constantStrings.json';
import testimonials from '../resources/testimonials.json';
import secrets from '../../config/secrets';
const githubClient = process.env.GITHUB_ID;
const githubSecret = process.env.GITHUB_SECRET;
module.exports = function(app) {
const router = app.loopback.Router();
@ -258,9 +260,9 @@ module.exports = function(app) {
[
'https://api.github.com/repos/freecodecamp/',
'freecodecamp/pulls?client_id=',
secrets.github.clientID,
githubClient,
'&client_secret=',
secrets.github.clientSecret
githubSecret
].join(''),
githubHeaders,
function(err, status1, pulls) {
@ -273,9 +275,9 @@ module.exports = function(app) {
[
'https://api.github.com/repos/freecodecamp/',
'freecodecamp/issues?client_id=',
secrets.github.clientID,
githubClient,
'&client_secret=',
secrets.github.clientSecret
githubSecret
].join(''),
githubHeaders,
function(err, status2, issues) {