Skip to content

Commit

Permalink
Disable false eslint warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
elszczepano committed Feb 15, 2019
1 parent 18ef4c3 commit 01862b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/middlewares/uploadImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const fileFilter = (req, file, callback) => {

const storage = multer.diskStorage({
destination: (req, file, callback) => {
if (!fs.exists(dirName)){
if (!fs.exists(dirName)) { // eslint-disable-line
mkdirp(dirName, function() {
callback(null, dirName);
});
Expand Down
7 changes: 3 additions & 4 deletions src/seedRunner.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import fs from 'fs';
import async from 'async';
const exec = require('child_process').exec;
const exec = require('child_process').exec; // eslint-disable-line

const scriptsFolder = './src/seed/';

const files = fs.readdirSync(scriptsFolder);
const files = fs.readdirSync('./src/seed/');
const funcs = files.map(function(file) {
return exec.bind(null, `babel-node ${scriptsFolder}${file}`);
return exec.bind(null, `babel-node ./src/seed/${file}`);
});

function getResults(err, data) {
Expand Down

0 comments on commit 01862b9

Please sign in to comment.