Browse Source

feat: add linting to travis script

Matt Condon 7 years ago
parent
commit
258c001f7f
2 changed files with 3 additions and 1 deletions
  1. 2 1
      .travis.yml
  2. 1 0
      package.json

+ 2 - 1
.travis.yml

@@ -10,7 +10,8 @@ cache:
 before_script:
 before_script:
   - truffle version
   - truffle version
 script:
 script:
-  - npm test
+  - npm run lint
+  - npm run test
 notifications:
 notifications:
   slack:
   slack:
     rooms:
     rooms:

+ 1 - 0
package.json

@@ -4,6 +4,7 @@
   "description": "Secure Smart Contract library for Solidity",
   "description": "Secure Smart Contract library for Solidity",
   "scripts": {
   "scripts": {
     "test": "scripts/test.sh",
     "test": "scripts/test.sh",
+    "lint": "eslint .",
     "console": "truffle console",
     "console": "truffle console",
     "coverage": "scripts/coverage.sh"
     "coverage": "scripts/coverage.sh"
   },
   },