let the typescript module do its own linting

This commit is contained in:
Zeke Sikelianos 2017-05-09 15:44:25 -07:00
parent 8c856922f3
commit 9b82d1a996
2 changed files with 1 additions and 4 deletions

View file

@ -6,7 +6,7 @@
"browserify": "^13.1.0", "browserify": "^13.1.0",
"electabul": "~0.0.4", "electabul": "~0.0.4",
"electron-docs-linter": "^2.1.0", "electron-docs-linter": "^2.1.0",
"electron-typescript-definitions": "^1.0.1", "electron-typescript-definitions": "^1.2.0",
"request": "*", "request": "*",
"standard": "^8.4.0", "standard": "^8.4.0",
"standard-markdown": "^2.1.1" "standard-markdown": "^2.1.1"

View file

@ -150,11 +150,8 @@ 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', '--config', tslintconfig, outfile], env=env)
def strip_binaries(): def strip_binaries():
for binary in TARGET_BINARIES[PLATFORM]: for binary in TARGET_BINARIES[PLATFORM]: