Skip to content

Commit

Permalink
Stop linting on npm install
Browse files Browse the repository at this point in the history
It's annoying to run the linter on npm install, because it slows down the
react-sdk and riot-web builds.

The fact that `npm install` runs `prepublish` is going to be changed in npm 4
(see npm/npm#14290), but for now this is the best bet.
  • Loading branch information
richvdh committed Jan 19, 2017
1 parent 18001dc commit 194fad7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
language: node_js
node_js:
- node # Latest stable version of nodejs.
script:
- npm run lint
- npm run test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dist": "npm run build",
"watch": "watchify --exclude olm browser-index.js -o dist/browser-matrix-dev.js -v",
"lint": "eslint --max-warnings 122 src spec",
"prepublish": "npm run lint && npm run build && git rev-parse HEAD > git-revision.txt"
"prepublish": "npm run build && git rev-parse HEAD > git-revision.txt"
},
"repository": {
"url": "https://github.com/matrix-org/matrix-js-sdk"
Expand Down

0 comments on commit 194fad7

Please sign in to comment.