Skip to content
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

ESLint formatter configs #167

Merged
merged 5 commits into from
Aug 5, 2024
Merged

ESLint formatter configs #167

merged 5 commits into from
Aug 5, 2024

Conversation

n-d-r-d-g
Copy link
Member

@MrSunshyne

I added the changes from your commit & a few additional rules, formatted the code with pnpm run lin --fix, then fixed all errors thrown by ESLint.

I also added the recommended settings.json contents from @antfu/eslint-config's docs. It seems that editor.codeActionsOnSave is what ESLint is looking at to know to format the code on save.

P.s. I can confirm: format on save is now working! Reloading VSCode didn't work. I had to restart the ESLint server manually.

I'm not sure about the warnings though. I'm thinking maybe there are some special cases, e.g. unused variables were kept in the codebase for easy access during testing? If not, then, let me know. I'll fix the warnings as well.

@MrSunshyne
Copy link
Member

thxxx! i tested quickly on a deploy, working fine. merging!

@MrSunshyne MrSunshyne merged commit 4239923 into frontendmu:main Aug 5, 2024
1 check passed
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.

2 participants