Conversation
merlinnot
left a comment
There was a problem hiding this comment.
Did you consider adding lint:*:fix too? 🙃
package.json
Outdated
There was a problem hiding this comment.
npm-run-all supports glob-like pattern matching, so you can do run-s lint:*.
Why did you decide to run these in sequence instead of parallel?
|
@merlinnot What should Good idea to run the linter tasks in parallel. I'll make the change. |
|
Since {
"lint:unit:fix": "run-s \"lint:unit —fix\""
}One day we can even add precommit hooks on top of this, so it fixes everything before committing using husky and lint-staged, but that shouldn’t be a part of this PR. |
So far we haven't been linting our test sources. Now that we have upgraded to the latest version of tslint (#194), we should start linting our unit and integration tests. This PR adds the following npm tasks:
The aggregate task 'npm run lint
runs all of the above, which will run as part ofnpm test` as well (this causes all lint jobs to run with CI).I also fixed all the existing lint errors in test files. I relaxed the linter rules a little bit for tests by introducing a separate
tslint-test.jsonfile.