-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: eslint + Typescript config #3
base: main
Are you sure you want to change the base?
Conversation
We should have a GH action that runs |
Yep, we should have it, I'll add it |
Also, why do we need typescript? Isn't that adding more complexity to the implementation? |
I will need to type props for the components, I can use prop-types lib but it will be better to use Typescript for maintaining this and for types in general. It wouldn't add more complexity |
3e9891d
to
8743a32
Compare
If you don't mind me asking, why are prop types needed? |
When we upload a file, there will be a list of images each image will be a component (needs props), list of images will be another component (needs prop with the list of images). It's a good practice to type props and types that in this case I will use a context as well |
But does the library need types? Is adding typescript making the library more or less maintainable? Can we elaborate on it? |
Typescript makes the React app more maintainable, there is not a problem adding it. Why is there problem with this? |
Because we have so far had problems with every extra type of javascript language that we add to the stack. Adding coffescript was a nightmare when it promised to make everything easier. We are already suspicious of adding new variants of Javascript. It usually makes whatever we are doing harder to maintain in the long term. |
I'm gonna move this back to draft in case we need it in the future |
Configuration for Eslint and Typescript
Eslint: It has some rules React app code
Two new scripts:
lint
to check if there any errorlint-fix
to fix the errors foundMerge checklist:
Check off if complete or not applicable: