-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Extract tslint exclusions out of package.json scripts #2684
Conversation
package.json
Outdated
@@ -23,7 +23,7 @@ | |||
"github-release": "github-release-from-changelog", | |||
"lint": "yarn lint:js . && yarn lint:ts && yarn lint:md .", | |||
"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", | |||
"lint:ts": "tslint -p . -c tslint.json -t stylish **/*.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.
This will lint all the ts files (even untouched) on each commit. Please remove the **/*.ts
part and add it in lint
script instead (as it's done for eslint)
Codecov Report
@@ Coverage Diff @@
## master #2684 +/- ##
=======================================
Coverage 34.35% 34.35%
=======================================
Files 389 389
Lines 8747 8747
Branches 919 888 -31
=======================================
Hits 3005 3005
- Misses 5132 5162 +30
+ Partials 610 580 -30
Continue to review full report at Codecov.
|
adding to patch to reduce merge conflicts |
Extract tslint exclusions out of package.json scripts
Issue: #2682 (comment)
What I did
Extract tslint exclusions to the section inside
tslint.json
.