-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
chore: Add .ts files to lint-staged #109
Conversation
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.
LGTM
package.json
Outdated
@@ -20,7 +20,7 @@ | |||
"pre-commit": "lint-staged" | |||
}, | |||
"lint-staged": { | |||
"*.js": [ | |||
"*.{js|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.
Line 27 in c3fea62
"!(*.js)": "prettier --write --ignore-unknown" |
We also have this where we run prettier? Does that mean for .ts
prettier will run twice now?
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.
Yes.
I think this PR change may be unnecessary since we're already linting .ts
files.
Ref #22 (comment)
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.
Good catch! Added .ts
to the second entry to ensure it won't be run through prettier twice.
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.
Added
.ts
to the second entry to ensure it won't be run through prettier twice.
Maybe this change isn't pushed?
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.
LGTM
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.
LGTM, thanks!
Prerequisites checklist
What is the purpose of this pull request?
Ensure
.ts
files are linted on precommitWhat changes did you make? (Give an overview)
.ts
files to thelint-staged
config inpackage.json
Related Issues
Is there anything you'd like reviewers to focus on?