Skip to content

Commit 389c76a

Browse files
huanRyan Munro
authored andcommitted
linting the code, and downgrade from es6 to es5
1 parent 8a74c7a commit 389c76a

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"lint": "npm run lint:ts",
99
"lint:ts": "tslint --project tsconfig.json --type-check",
10-
"test": "npm run test:js && npm run test:ts",
10+
"test": "npm run lint && npm run test:js && npm run test:ts",
1111
"test:js": "tap test.js",
1212
"test:ts": "ts-node test.ts",
1313
"test_ts": "ts-node node_modules/blue-tape/bin/blue-tape test_typescript.ts"

test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ const { test } = require('tap');
77
test('TypeScript', async t => {
88
t.plan(1);
99

10-
let python = pythonBridge();
11-
let a = 123, b = 321;
12-
python.ex`
10+
const python = pythonBridge();
11+
const a = 123, b = 321;
12+
await python.ex`
1313
def hello(a, b):
1414
return a + b
1515
`;

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
3-
"target": "es6"
3+
"target": "es5"
4+
, "lib": ["es2015"]
45
, "module": "commonjs"
56
, "outDir": "dist"
67
, "declaration": true

0 commit comments

Comments
 (0)