Skip to content

Commit 727d80f

Browse files
author
Brian Hulette
committed
added npm lint script
1 parent 68b7c8f commit 727d80f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

js/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ From this directory, run:
1818

1919
``` bash
2020
$ npm install # pull dependencies
21+
$ npm run lint -- <filename> # run tslint
2122
$ npm run build # build typescript (run tsc and webpack)
2223
$ npm run test # run the unit tests (node.js only)
2324
```

js/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"build": "./flatbuffers.sh && tsc && tsc -m es6 --outDir lib-esm && webpack",
88
"clean": "rm -rf lib lib-esm _bundles",
9-
"test": "./node_modules/mocha/bin/mocha ./spec/arrow.js"
9+
"test": "./node_modules/mocha/bin/mocha ./spec/arrow.js",
10+
"lint": "./node_modules/tslint/bin/tslint"
1011
},
1112
"author": "",
1213
"repository": "https://github.com/apache/arrow/",
@@ -15,6 +16,7 @@
1516
"awesome-typescript-loader": "^3.1.3",
1617
"chai": "^3.5.0",
1718
"mocha": "^3.3.0",
19+
"tslint": "^5.3.2",
1820
"typescript": "^2.3.2",
1921
"uglifyjs-webpack-plugin": "^0.4.3",
2022
"webpack": "^2.3.3"

0 commit comments

Comments
 (0)