From 9b82d1a996e41389f8d2fb4c49340a8870b4315f Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Tue, 9 May 2017 15:44:25 -0700 Subject: [PATCH] let the typescript module do its own linting --- package.json | 2 +- script/create-dist.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/package.json b/package.json index af80571da529..5a4d24f46e60 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "browserify": "^13.1.0", "electabul": "~0.0.4", "electron-docs-linter": "^2.1.0", - "electron-typescript-definitions": "^1.0.1", + "electron-typescript-definitions": "^1.2.0", "request": "*", "standard": "^8.4.0", "standard-markdown": "^2.1.1" diff --git a/script/create-dist.py b/script/create-dist.py index 9188ad8dca5b..2602a9f943dc 100755 --- a/script/create-dist.py +++ b/script/create-dist.py @@ -150,11 +150,8 @@ def create_typescript_definitions(): env['PATH'] = os.path.pathsep.join([node_bin_dir, env['PATH']]) infile = os.path.relpath(os.path.join(DIST_DIR, 'electron-api.json')) 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), '--out={0}'.format(outfile)], env=env) - execute(['tslint', '--config', tslintconfig, outfile], env=env) def strip_binaries(): for binary in TARGET_BINARIES[PLATFORM]: