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
				
			
		
							
								
								
									
										17
									
								
								react-express-mongodb/backend/config/config.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								react-express-mongodb/backend/config/config.js
									
										
									
									
										vendored
									
									
								
							|  | @ -1,12 +1,11 @@ | |||
| var env = process.env.NODE_ENV || 'development'; | ||||
| const env = process.env.NODE_ENV || "development"; | ||||
| 
 | ||||
| if(env === 'development' || env === 'test'){ | ||||
| if (env === "development" || env === "test") { | ||||
|   const config = require("./config.json"); | ||||
|   const envConfig = config[env]; | ||||
|   console.log(envConfig); | ||||
| 
 | ||||
|     const config = require('./config.json') | ||||
|     let envConfig = config[env]; | ||||
|     console.log(envConfig); | ||||
| 
 | ||||
|     Object.keys(envConfig).forEach((key) => { | ||||
|         process.env[key] = envConfig[key] | ||||
|     }) | ||||
|   Object.keys(envConfig).forEach((key) => { | ||||
|     process.env[key] = envConfig[key]; | ||||
|   }); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue