-
Notifications
You must be signed in to change notification settings - Fork 199
Conversation
I forgot to run the tests, it's failing. 😞 |
Fitrst of all - thanks for efforts and PR, unified formatting is great. This project used single quotes that were enforced with TSLint and as I can see - there are many files with only quotes changes. Other things to consider:
|
I'll fix the tests too. |
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.
Awesome, this'll make our code a lot cleaner! A few small comments on top of IllusionMH's, then this should be good to merge!
Yes please, a pre-commit hook would be best. Husky is pretty great. |
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.
Waiting on a pre-commit hook and recommending the VS Code extension.
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.
Checked everything except test-data
and src/test
.
There are 2 comments that should be fixed.
Also concatenation can be removed in next lines, since now that are on one line anyway (probably in follow up PR)
|
@IllusionMH I've removed the concatenations too. These were just some aesthetic changes thus pushed it here. |
I've checked on Windows in VS Code. Both pre-commit and @mesaugat Thanks! There are no more notes from my side 👍 |
Ahh, merge conflicts. I'll try to get to these tonight if I have permissions for the branch. |
👍 That was fast conflict resolving 😮 |
Didn't have to do anything, just |
Tested this out locally and it works like a charm. Thanks so much @mesaugat for sending this in and working on it, and @IllusionMH for the great reviews! 🙌 |
@IllusionMH @JoshuaKGoldberg Thank you guys! 🥇 Also, I forgot to mention but I had a hard time making changes to the tests when doing this. Somehow, the tests showed an old snapshot of I've not looked into the test utils but maybe the test results were being cached or something. These tests used to fail even though I changed it to make them green. |
prettier
andtslint-config-prettier
as dev dependenciesnpm run prettier
.js
,.ts
,.tsx
,.json
and.md
files.prettierrc
file with a basic configuration.prettierignore
for ignoring files that don't require prettiertslint-config-prettier
has been added totslint.json
. It helps in the removal of conflicts betweentslint
rules andprettier
npm run tslint:check
. The following rules were detected as conflicts bytslint-config-prettier
and have been removed fromtslint.json
tslint:check
has been added to thetest
scriptrecommended_ruleset.js
is now generated using single quotes. Also, to avoid conflicts with prettier,recommended_ruleset.js
has been added to.prettierignore
husky
andlint-staged
to run prettier as a pre-commit hookFixes #558