Skip to content

Commit

Permalink
should validate source code at lint step
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuan nguyen committed Jun 27, 2020
1 parent 8d09301 commit aead434
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ jobs:
- attach_workspace:
at: ~/code

- run:
name: Validate source code
command: npm run validate

- run:
name: Lint TypeScript code
command: npm run lint
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"test:coverage:ci": "jest --runInBand --forceExit --reporters=default --reporters=jest-junit --coverage -ci __tests__",
"build": "rm -rf lib && tsc -p tsconfig.build.json",
"prepack": "rm -rf *.tgz && npm run build",
"validate": "tsc -p tsconfig.build.json --noEmit",
"lint": "tslint -p tsconfig.build.json",
"lint:fix": "npm run lint --fix",
"coveralls": "cat ./coverage/lcov.info | coveralls"
Expand Down

0 comments on commit aead434

Please sign in to comment.