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:
		
							parent
							
								
									be8875c9b6
								
							
						
					
					
						commit
						be7f09b6ba
					
				
					 12 changed files with 149 additions and 140 deletions
				
			
		
							
								
								
									
										14
									
								
								react-express-mongodb/backend/models/todos/todo.js
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								react-express-mongodb/backend/models/todos/todo.js
									
										
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,14 @@ | |||
| /** | ||||
|  * Created by Syed Afzal | ||||
|  */ | ||||
| const mongoose = require('mongoose'); | ||||
| 
 | ||||
| const Todo = mongoose.model('Todo', { | ||||
|     text : { | ||||
|         type: String, | ||||
|         trim: true, | ||||
|         required: true | ||||
|     } | ||||
| }); | ||||
| 
 | ||||
| module.exports = {Todo}; | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue