-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Add tslint to the linting pipe #2682
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2682 +/- ##
=======================================
Coverage 34.35% 34.35%
=======================================
Files 389 389
Lines 8747 8747
Branches 897 898 +1
=======================================
Hits 3005 3005
+ Misses 5144 5134 -10
- Partials 598 608 +10
Continue to review full report at Codecov.
|
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.
Seems reasonable to me!
"lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location=.cache/eslint --ext .js,.jsx,.json", | ||
"lint:ts": "tslint -p . -t stylish -e '{**/node_modules/**,**/dist/**,lib/cli/test/**,**/storybook-static/**}' **/*.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.
do they have something like .tslintignore
?
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.
Right, I'll check it!
adding to patch to reduce merge conflicts |
Add tslint to the linting pipe
Issue: Based on #2679 (comment)
What I did
Added tslint to the precommit + fixed linter errors.
Feel free to add new rules.