-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Fix all eslint errors in the application #188
Comments
Now that the eslint configuration is being picked up properly, there are errors in regards to missing prop types. You will need to run One of the props is a job entity. I created the common proptype snippet for a job below. Add it to the codebase and import it wherever a job entity prop type exists. import PropTypes from ‘prop-types’
const jobPropType = PropTypes.shape({
id: PropTypes.number.isRequired,
companyName: PropTypes.string.isRequired,
companyLogo: PropTypes.string.isRequired,
jobTitle: PropTypes.string.isRequired,
roleFocus: PropTypes.oneOf([‘Front-end’, ‘Back-end’, ‘Full-stack’])
.isRequired,
postedAt: PropTypes.shape({
nanoseconds: PropTypes.number.isRequired,
seconds: PropTypes.number.isRequired,
toDate: PropTypes.func.isRequired,
}).isRequired,
})
export default jobPropType The |
Solid issue @nickytonline. I'll definitely chip away at this one as I can. Our husky pre-commit hooks will fail any commit while these errors exist. Is there a way to disable that part of the process while these are getting resolved? From the command line? VScode git integration? |
@drewclem, while we're fixing eslint issues, you can bypass husky via the When committing code, run e.g. |
Goal
Now that we have the configuration being picked up thanks to #185, we can start fixing eslint issues. This is an all encompassing issues for eslint errors.
Reason
When you run eslint, there are over 200 lint errors.
Tips
node_modules/.bin/eslint ./src/**/*.js --fix
or usenpx eslint ./src/**/*.js --fix
to automatically fix any errors that eslint is capable of fixing.Definition of Done
There are no more eslint errors and the application functions just as it did before the lint errors were fixed.
The text was updated successfully, but these errors were encountered: