Skip to content

Commit

Permalink
fix eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
madhums committed Mar 11, 2019
1 parent 4f7c6c6 commit 6dfd17a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"rules": {
"prettier/prettier": ["error", {
"singleQuote": true
}]
}],
"no-console": "off"
}
}
2 changes: 1 addition & 1 deletion app/models/article.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ ArticleSchema.methods = {
* @api private
*/

uploadAndSave: function(image) {
uploadAndSave: function(/*image*/) {
const err = this.validateSync();
if (err && err.toString()) throw new Error(err.toString());
return this.save();
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = app;

// Bootstrap models
fs.readdirSync(models)
.filter(file => ~file.search(/^[^\.].*\.js$/))
.filter(file => ~file.search(/^[^.].*\.js$/))
.forEach(file => require(join(models, file)));

// Bootstrap routes
Expand Down

0 comments on commit 6dfd17a

Please sign in to comment.