test lint instead of fixing it in travis

This commit is contained in:
Tony Brix 2018-02-26 16:23:55 -06:00
parent 56d1bcf183
commit 2953012840
2 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,7 @@ script: |
sed -i s/0o755/0755/ test/index.js;
npm test;
else
npm run lint && npm test;
npm run test:lint && npm test;
fi
cache:
directories:

View File

@ -38,6 +38,7 @@
},
"scripts": {
"test": "node test",
"test:lint": "eslint lib/marked.js test/index.js",
"bench": "node test --bench",
"lint": "eslint --fix lib/marked.js test/index.js",
"build": "uglifyjs lib/marked.js -cm --comments /Copyright/ -o marked.min.js",