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 rules seem to be clashing with Prettier #420

Closed
sduduzog opened this issue Jul 16, 2023 · 1 comment
Closed

Eslint rules seem to be clashing with Prettier #420

sduduzog opened this issue Jul 16, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@sduduzog
Copy link
Contributor

Seems like when you have prettier setup as a code formatter, some eslint format specific rules are overriden. This is observed on vscode when prettier is installed as an extension and as the default formatter, there's a twitch as eslint formats the code, then prettier does to almost immediately.

Possible solutions to this would be to lean more towards eslint as a formatter and remove prettier
or
Add prettier config to the eslintrc file through eslint-config-prettier after the nuxt-config to ignore some rules from eslint that prettier is in charge of handling

Version

@nuxthq/ui: v2.5.0
nuxt: v3.6.2

Steps to reproduce

On vscode, ensure both eslint and prettier extensions are installed.

  • open any component i.e. (Avatar.vue) right click on content to format with prettier (or just save)
Copy link
Member

We can remove Prettier, it was added in #290 but is not used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants