Skip to content

Commit

Permalink
Add linting for .ts sources
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehoban committed Feb 7, 2016
1 parent edb88b9 commit 08a007d
Show file tree
Hide file tree
Showing 25 changed files with 550 additions and 496 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ install:
- go get -u -v golang.org/x/tools/cmd/gorename

script:
- npm run lint
- npm test --silent
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"scripts": {
"vscode:prepublish": "node ./node_modules/vscode/bin/compile",
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
"test": "node ./node_modules/vscode/bin/test"
"test": "node ./node_modules/vscode/bin/test",
"lint": "node ./node_modules/tslint/bin/tslint ./src/*.ts ./src/debugAdapter/*.ts ./test/*.ts"
},
"extensionDependencies": [
"vscode.go"
Expand All @@ -37,9 +38,10 @@
"lodash": "^3.10.1"
},
"devDependencies": {
"vscode": "^0.10.7",
"fs-extra": "^0.26.0",
"typescript": "^1.6.2"
"tslint": "^3.3.0",
"typescript": "^1.6.2",
"vscode": "^0.10.7"
},
"engines": {
"vscode": "0.10.x"
Expand Down Expand Up @@ -226,11 +228,11 @@
"default": "goreturns",
"description": "Pick 'gofmt', 'goimports' or 'goreturns' to run on format."
},
"go.useCodeSnippetsOnFunctionSuggest": {
"type": "boolean",
"default": false,
"description": "Complete functions with their parameter signature"
},
"go.useCodeSnippetsOnFunctionSuggest": {
"type": "boolean",
"default": false,
"description": "Complete functions with their parameter signature"
},
"go.gopath": {
"type": "string",
"default": null,
Expand Down
Loading

0 comments on commit 08a007d

Please sign in to comment.