KarimMokhtar / react-drag-drop-files

Light and simple Reactjs drag and drop files library to use with very flexible options to change, so you put whatever the design you want for your drop-area. Users can drag and drop or even select the file anywhere in the window.
MIT License
248 stars 91 forks source link

feat: added husky and lint-staged #76

Closed Brandontam29 closed 2 weeks ago

Brandontam29 commented 2 years ago

Summary

Added husky and lint-staged. I am new to open source and doing this kind of config. I want to know if this is what you were looking for. I will probably have to do some changes before merging because I am not sure if this is good.

Key Changes

Only modified the package.json. Ran npm run test but Cannot find module 'react' from 'tests/DrawTypes.test.tsx'.

KarimMokhtar commented 2 years ago

Hi @Brandontam29 , Thanks for your contribution, Actually we are not using tests right now as it needs a special configuration so there is no need for that command. Also could you please try to take a branch of yours and check if the linting is working? Second thing please make sure you are following the semantic PR rules so your code passes the pipeline. Thanks again for your effort.

Brandontam29 commented 2 years ago

I don't know if you received the notification, but I just pushed the branch with commit message changed. Thank you.

Brandontam29 commented 2 years ago

I changed the title of the pr, sorry for the inconvenience. I hope it works this time.

KarimMokhtar commented 2 years ago

Hi @Brandontam29 , Have you tried it locally? I have tried to test if it's gonna lint the staged files or not but it seems that it's not working. Could you please check?

Brandontam29 commented 2 years ago

Let me test it this weekend. I have a few things going on right now.

KarimMokhtar commented 1 year ago

@Brandontam29 have you reached a new update on this or should i close the PR?