focallocal / fl-maps

The Public Happiness Movement: A platform bringing people and communities together to solve any and all societal issues. BTM branch is a project aiming to solve world involuntary homelessness. PHM brings communities together to create social initiatives for kindness and well-being.
https://publichappinessmovement.com
MIT License
143 stars 95 forks source link

Fixed linting issues #1162

Closed zhna123 closed 1 year ago

zhna123 commented 1 year ago

I ran eslint --fix to make the local workspace cleaner. There are still things that can be fixed manually when we work on the code, eg, un-used variables, .etc

Since many files got touched by auto fixes, here is a summary and the files I changed manually:

  1. eslint auto fixes
  2. Added a script in package.json to run fix
  3. Updated eslint-plugin-react and eslint minor versions
  4. Updated .eslintrc.js to be able to run --fix
  5. Changed extends in .eslintrc.js according to this
AndyatFocallocal commented 1 year ago

That looks like a good idea to me. I'll wait on @Marvelxy to review. There's no rush as our live site isn't building until the mup fix is completed.