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

style: Resolve ESLint conflict with eslint-plugin-prettier #82

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

yunchae-kim
Copy link
Contributor

[#62] Refer to GitHub issue...

This update addresses the ESLint conflicts between eslint-plugin-prettier and our ESLint rules. The conflicts caused issues with automatic double-quoting of JavaScript strings, overriding our preference for single quotes. We have decided to replace eslint-plugin-prettier with the prettier-eslint extension in VSCode for better ESLint and Prettier compatibility.

Changes made in this update:

  • Removed eslint-plugin-prettier from package.json.
  • Removed eslint-plugin-sort-exports, as we now use eslint-plugin-simple-import-sort for sorting React exports.
  • Updated package-lock.json accordingly.
  • Added rvest.vs-code-prettier-eslint to .vscode/extensions.json for prettier-eslint compatibility.
  • Changed default formatters in .vscode/settings.json from esbenp.prettier-vscode (Prettier) to rvest.vs-code-prettier-eslint (Prettier ESLint).
  • Removed all eslint-plugin-prettier and eslint-plugin-sort-exports references from .eslintrc.
  • Turned off the import/order rule to avoid conflicts with simple-import-sort/imports.

[#62] Refer to GitHub issue...

This update addresses the ESLint conflicts between
eslint-plugin-prettier and our ESLint rules. The conflicts caused issues
with automatic double-quoting of JavaScript strings, overriding our
preference for single quotes. We have decided to replace
eslint-plugin-prettier with the prettier-eslint extension in VSCode for
better ESLint and Prettier compatibility.

Changes made in this update:

- Removed eslint-plugin-prettier from package.json.
- Removed eslint-plugin-sort-exports, as we now use
eslint-plugin-simple-import-sort for sorting React exports.
- Updated package-lock.json accordingly.
- Added rvest.vs-code-prettier-eslint to .vscode/extensions.json for
prettier-eslint compatibility.
- Changed default formatters in .vscode/settings.json from
esbenp.prettier-vscode (Prettier) to rvest.vs-code-prettier-eslint
(Prettier ESLint).
- Removed all eslint-plugin-prettier and eslint-plugin-sort-exports
references from .eslintrc.
- Turned off the import/order rule to avoid conflicts with
simple-import-sort/imports.
@yunchae-kim yunchae-kim added minor Easy to fix issue that can be completed in a limited amount of time, similar to "easy fix" style Regarding style/formatting and removed minor Easy to fix issue that can be completed in a limited amount of time, similar to "easy fix" labels Sep 28, 2023
@yunchae-kim yunchae-kim merged commit 5cc265e into master Sep 28, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
style Regarding style/formatting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant