Skip to content

Commit b91b5c9

Browse files
Turbo87tylerturdenpants
authored andcommitted
CI: Run ESLint (#139)
* bin/cli: Fix linting issues * package.json: Add `lint` script * CI: Run ESLint
1 parent d390307 commit b91b5c9

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@ node_js:
66
cache:
77
npm: true
88

9+
script:
10+
- npm run lint
11+
- npm run test
12+
913
after_success:
1014
- npm run coveralls

bin/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
require('codemod-cli').runTransform(
55
__dirname,
6-
process.argv[2] /* transform name */,
6+
process.argv[2] /* transform name */,
77
process.argv.slice(3) /* paths or globs */
8-
)
8+
);

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"scripts": {
2323
"coveralls": "cat ./coverage/lcov.info | node node_modules/.bin/coveralls",
2424
"deploy": "npm version patch && git push && git push --tags && npm publish",
25+
"lint": "eslint . --cache",
2526
"test": "codemod-cli test --coverage"
2627
},
2728
"jest": {

0 commit comments

Comments
 (0)