-
Notifications
You must be signed in to change notification settings - Fork 12k
chore(lint): lint ts as well as js #1823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
"lint": "eslint ." | ||
"lint-js": "eslint .", | ||
"lint-ts": "tslint \"**/*.ts\" -c tslint.json -e \"**/__path__/*.ts\" -e \"node_modules/**\" -e \"tmp/**\"", | ||
"lint": "npm-run-all -c lint-js lint-ts" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're running them sequentially, just do npm run foo bar
and skip a dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried doing that, but it seems to just send the second one as an argument:
$ npm run lint-js lint-ts
> angular-cli@1.0.0-beta.11-webpack.2 lint-js D:\work\angular-cli
> eslint . "lint-ts"
2 nits. Also, travis fails the lint test. |
The lint errors I'll address tomorrow probably. There are a fair amount of them. |
145d320
to
640a008
Compare
@@ -49,7 +49,9 @@ | |||
true, | |||
"ban-keywords", | |||
"check-format", | |||
"allow-trailing-underscore" | |||
"allow-leading-underscore", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll want to allow one or the other, not both, but I'm fine with it for now (I know it's a big one).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, left allow-leading-underscore
only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, that's what Angular uses.
LGTM. |
Please rebase and I'll merge when I can. |
Rebased and pushed. Have a quick review and check the linux CI before merging though, stuff might have been broken. |
Still LGTM. I'll merge. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
We weren't linting TS files as part of the CI, so a lot of linting errors were going unnoticed.