Merge pull request #19 from strongloop/eslint
Update eslint infrastructure
This commit is contained in:
commit
a96af1f58e
|
@ -1,3 +1,4 @@
|
||||||
|
'use strict';
|
||||||
module.exports = cloneAllProperties;
|
module.exports = cloneAllProperties;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
// This file is licensed under the MIT License.
|
// This file is licensed under the MIT License.
|
||||||
// License text available at https://opensource.org/licenses/MIT
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
|
'use strict';
|
||||||
var accepts = require('accepts');
|
var accepts = require('accepts');
|
||||||
var debug = require('debug')('strong-error-handler:http-response');
|
var debug = require('debug')('strong-error-handler:http-response');
|
||||||
var sendJson = require('./send-json');
|
var sendJson = require('./send-json');
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
// This file is licensed under the MIT License.
|
// This file is licensed under the MIT License.
|
||||||
// License text available at https://opensource.org/licenses/MIT
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
|
'use strict';
|
||||||
var ejs = require('ejs');
|
var ejs = require('ejs');
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
|
@ -30,7 +31,7 @@ function sendHtml(res, data, options) {
|
||||||
*/
|
*/
|
||||||
function compileTemplate(filepath) {
|
function compileTemplate(filepath) {
|
||||||
var options = {cache: true, filename: filepath};
|
var options = {cache: true, filename: filepath};
|
||||||
fileContent = fs.readFileSync(filepath, 'utf8');
|
var fileContent = fs.readFileSync(filepath, 'utf8');
|
||||||
return ejs.compile(fileContent, options);
|
return ejs.compile(fileContent, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chai": "^2.1.1",
|
"chai": "^2.1.1",
|
||||||
"eslint": "^2.5.3",
|
"eslint": "^2.13.1",
|
||||||
"eslint-config-loopback": "^3.0.0",
|
"eslint-config-loopback": "^4.0.0",
|
||||||
"express": "^4.13.4",
|
"express": "^4.13.4",
|
||||||
"mocha": "^2.1.0",
|
"mocha": "^2.1.0",
|
||||||
"supertest": "^1.1.0"
|
"supertest": "^1.1.0"
|
||||||
|
|
Loading…
Reference in New Issue