react-express-mongodb: lint sources

to fix some syntax issues in the existing code, the commit
put in place prettier and format the code

Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
This commit is contained in:
Jérémie Drouet
2020-05-12 15:16:03 +02:00
committed by Guillaume Lours
parent be8875c9b6
commit be7f09b6ba
12 changed files with 149 additions and 140 deletions

View File

@@ -3,7 +3,7 @@
*/
const mongoose = require('mongoose');
var Todo = mongoose.model('Todo', {
const Todo = mongoose.model('Todo', {
text : {
type: String,
trim: true,