Skip to content

Commit a8cb1e0

Browse files
committed
Adding TSLint and linting the whole project
1 parent 7c8fe8f commit a8cb1e0

29 files changed

+955
-663
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ os:
44
- osx
55
- linux
66

7+
cache:
8+
directories:
9+
- "node_modules"
10+
711
before_install:
812
- if [ $TRAVIS_OS_NAME == "linux" ]; then
913
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
@@ -17,3 +21,4 @@ install:
1721

1822
script:
1923
- npm test --silent
24+
- npm run lint --silent

package-lock.json

Lines changed: 242 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"vscode:prepublish": "tsc -p ./",
3030
"compile": "tsc -p ./",
3131
"watch": "tsc -watch -p ./",
32+
"lint": "./node_modules/.bin/tslint --config .\\tslint.json --project .\\tsconfig.json",
3233
"postinstall": "node ./node_modules/vscode/bin/install",
3334
"test": "node ./node_modules/vscode/bin/test"
3435
},
@@ -41,6 +42,8 @@
4142
"@types/node": "^9.4.6",
4243
"mocha": "^5.0.1",
4344
"nock": "^9.2.3",
45+
"prettify": "^0.1.7",
46+
"tslint": "^5.9.1",
4447
"typescript": "^2.7.2",
4548
"vscode": "^1.1.10"
4649
},

0 commit comments

Comments
 (0)