Skip to content

Migrate from prettier to eslint to match firebase/firebase-tools styling #1194

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

Merged
merged 11 commits into from
Aug 22, 2022

Conversation

taeold
Copy link
Contributor

@taeold taeold commented Aug 19, 2022

Let's bite the bullet - match styling of firebase/firebase-tools and start using eslint over prettier.

This change effectively touches almost all files in this repo, especially since eslint prefers double-quotes over single-quotes.

I've made couple of other changes to make eslint errors go away. Things like:

  1. Eliminate dangling promises
  2. Remove empty function definition (prefer ()=>undefined over ()=>{})
  3. Remove unused arguments from function definitions

In theory, these are just linter changes without changes to the runtime behavior. v4 launches will need good tests and bugbash anyway, so this feels like a great time to commit to this migration.

@taeold taeold force-pushed the dl-eslint branch 4 times, most recently from 5620dbd to 3d79214 Compare August 20, 2022 03:18
@taeold taeold marked this pull request as ready for review August 22, 2022 17:02
@taeold taeold added this to the v4 milestone Aug 22, 2022
@taeold taeold merged commit 87d27ef into launch.next Aug 22, 2022
@taeold taeold mentioned this pull request Aug 23, 2022
taeold added a commit that referenced this pull request Aug 23, 2022
Turns out I missed most of the files for migration from prettier to eslint in #1194 due to poorly configured `.eslintignore` - it ignored all files under `src/v1` and `src/v2`!

Correctly configure eslint and run `npm run format`. Again, I had to manually fixup issues like:

1. Remove empty function definition (prefer ()=>undefined over ()=>{})
1. Remove unused arguments from function definitions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant