fix some linting issues

This commit is contained in:
Berkeley Martinez
2015-08-29 01:48:01 -07:00
parent f0b953eb66
commit 16b33ee90a
4 changed files with 22 additions and 17 deletions

View File

@ -43,6 +43,7 @@
"csso": "~1.3.11",
"dateformat": "~1.0.11",
"debug": "~2.1.0",
"dedent": "^0.4.0",
"dotenv": "~0.4.0",
"errorhandler": "~1.3.0",
"eslint": "^1.1.0",

View File

@ -1,4 +1,5 @@
import _ from 'lodash';
import dedent from 'dedent';
import moment from 'moment';
import { Observable, Scheduler } from 'rx';
import assign from 'object.assign';
@ -208,10 +209,12 @@ module.exports = function(app) {
debug('next challengeName', nextChallengeName);
if (!nextChallengeName || nextChallengeName === firstChallenge) {
req.flash('errors', {
msg: 'Once you have completed all of our challenges, you should '+
'join our <a href=\"//gitter.im/freecodecamp/HalfWayClub\"'+
'target=\"_blank\">Half Way Club</a> and start getting '+
'ready for our nonprofit projects.'
msg: dedent`
Once you have completed all of our challenges, you should
join our <a href=\"//gitter.im/freecodecamp/HalfWayClub\"
target=\"_blank\">Half Way Club</a> and start getting
ready for our nonprofit projects.
`.split('\n').join(' ')
});
return res.redirect('/map');
}

View File

@ -64,12 +64,13 @@ module.exports = function(app) {
return res.redirect('../nonprofit/' + dashedNameFull);
}
//We need to create logic that verifies completion. Defaulting to false for now.
//var buttonActive = false;
//if (
// We need to create logic that verifies completion.
// Defaulting to false for now.
// var buttonActive = false;
// if (
// req.user &&
// req.user.completedCoursewares.length > 63
//) {
// ) {
// var hasShownInterest =
// nonprofit.interestedCampers.filter(function(user) {
// return user.username === req.user.username;
@ -78,7 +79,7 @@ module.exports = function(app) {
// if (hasShownInterest.length === 0) {
// buttonActive = true;
// }
//}
// }
res.render('nonprofits/show', {
dashedName: dashedNameFull,