Hi Julian, thanks for the guide. I want to ask how to use Airbnb style guide with lint-staged. Do you have any resources you can point me to?
Airbnb style guide
lint-staged
Hi Adeyemi, I'm afraid I haven't tried this with Airbnb style guide, but if you have it configured as a linter, you can probably change the .lintstagedrc file to specify different linters to different file types.
.lintstagedrc
You could try something like this:
{ "linters": { "*.js": [ "eslint" ], "**/*.+(js|jsx|css|less|scss|ts|tsx|md)": [ "prettier --write", "git add" ] } }
Thanks a lot for the tip. I will try it out
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Julian, thanks for the guide. I want to ask how to use
Airbnb style guide
withlint-staged
. Do you have any resources you can point me to?Hi Adeyemi, I'm afraid I haven't tried this with Airbnb style guide, but if you have it configured as a linter, you can probably change the
.lintstagedrc
file to specify different linters to different file types.You could try something like this:
.lintstagedrc
Thanks a lot for the tip. I will try it out