fix eslint errors

This commit is contained in:
spalger
2016-05-19 07:52:01 -07:00
parent 939cca84c6
commit 68a8f712c8
47 changed files with 165 additions and 156 deletions

View File

@ -15,7 +15,7 @@ var path = require('path');
*/
function stringify(thing, pretty) {
return (pretty ? JSON.stringify(thing, null, ' ') : JSON.stringify(thing))
.replace(/\'/g, '\\\'')
.replace(/'/g, '\\\'')
.replace(/\\?"/g, function (quote) {
// replace external (unescaped) double quotes with single quotes
return quote === '\\"' ? '"' : '\'';
@ -70,16 +70,16 @@ var templateGlobals = {
paramType: function (type) {
switch (type && type.toLowerCase ? type.toLowerCase() : 'any') {
case 'time':
return 'Date, Number';
case 'any':
return 'Anything';
case 'enum':
return 'String';
case 'list':
return 'String, String[], Boolean';
default:
return _.ucfirst(type);
case 'time':
return 'Date, Number';
case 'any':
return 'Anything';
case 'enum':
return 'String';
case 'list':
return 'String, String[], Boolean';
default:
return _.ucfirst(type);
}
},