use tsconfig file when linting electron.d.ts
This commit is contained in:
		
					parent
					
						
							
								0a941fe2f5
							
						
					
				
			
			
				commit
				
					
						d4d1409e6f
					
				
			
		
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -150,9 +150,11 @@ def create_typescript_definitions(): | ||||||
|   env['PATH'] = os.path.pathsep.join([node_bin_dir, env['PATH']]) |   env['PATH'] = os.path.pathsep.join([node_bin_dir, env['PATH']]) | ||||||
|   infile = os.path.relpath(os.path.join(DIST_DIR, 'electron-api.json')) |   infile = os.path.relpath(os.path.join(DIST_DIR, 'electron-api.json')) | ||||||
|   outfile = os.path.relpath(os.path.join(DIST_DIR, 'electron.d.ts')) |   outfile = os.path.relpath(os.path.join(DIST_DIR, 'electron.d.ts')) | ||||||
|  |   tslintconfig = os.path.relpath(os.path.join(DIST_DIR, | ||||||
|  |            'node_modules/electron-typescript-definitions/tslint.json')) | ||||||
|   execute(['electron-typescript-definitions', '--in={0}'.format(infile), |   execute(['electron-typescript-definitions', '--in={0}'.format(infile), | ||||||
|            '--out={0}'.format(outfile)], env=env) |            '--out={0}'.format(outfile)], env=env) | ||||||
|   execute(['tslint', outfile], env=env) |   execute(['tslint', '--config', tslintconfig, outfile], env=env) | ||||||
| 
 | 
 | ||||||
| def strip_binaries(): | def strip_binaries(): | ||||||
|   for binary in TARGET_BINARIES[PLATFORM]: |   for binary in TARGET_BINARIES[PLATFORM]: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Zeke Sikelianos
				Zeke Sikelianos