mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	tsconfig: Set module-related options.
Set `--esModuleInterop` and `--isolatedModules` for consistency with Babel. `tsc --init` adds `--esModuleInterop` by default. Set `--moduleResolution node` so we can find type definitions in modules that provide them. Set `--forceConsistentCasingInFileNames`, which seems like a good idea, and which `tsc --init` will add by default in TypeScript 3.7. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							7a0a186e5f
						
					
				
				
					commit
					8654af367d
				
			@@ -10,11 +10,15 @@
 | 
			
		||||
        "noEmit": true,
 | 
			
		||||
        "target": "es5",
 | 
			
		||||
        "module": "es6",
 | 
			
		||||
        "esModuleInterop": true,
 | 
			
		||||
        "moduleResolution": "node",
 | 
			
		||||
        "sourceMap": true,
 | 
			
		||||
 | 
			
		||||
        /* Strict type-checking */
 | 
			
		||||
        "strict": true,
 | 
			
		||||
        "strictNullChecks": false,
 | 
			
		||||
        "forceConsistentCasingInFileNames": true,
 | 
			
		||||
        "isolatedModules": true,
 | 
			
		||||
 | 
			
		||||
        /* Additional checks */
 | 
			
		||||
        "noUnusedLocals": true,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user