-
-
Notifications
You must be signed in to change notification settings - Fork 428
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
New project with ESLint/Prettier, warnings and errors #274
Comments
This should be fixed in next version |
Thanks @clarkdo. |
It’s because the default templates were not well formatted, now the template files are all formatted in create-nuxt-app repo. |
Ohh I see, is there a way to test that? You said it was going to be in the next release? |
The prettier formatting on save should work together with your vscode plugin setting, you should check the doc of the plugin you’re using. |
Oh ok awesome, thanks! |
Well, I have prettier and vetur installed. It doesn't seem that there is an option for "Read the config file provided inside the project's folder" kind of thing. Even I thought the plugins read the config files |
Can you provide me a repo and steps? I can have a look tmr, it’s 1 am now😿 |
Oh damn, go get some sleep :) |
I modified .eslintrc.js:
VS Code extentions: Vetur, Eslint.
TADA! 🎆 |
Installing Nuxt without eslint & prettier and following the steps here https://medium.com/@gogl.alex/how-to-properly-set-up-eslint-with-prettier-for-vue-or-nuxt-in-vscode-e42532099a9c gave me a perfect working setup. Hope it helps :) |
Thanks @wuhhh I'll bookmark the link in case I format my computer, again. 😆 |
Thank you @wuhhh |
god I hate eslint breaking things |
I recently created a new nuxt app using This install included create-nuxt-app/template/_package.json Line 136 in 18740f8
Updating eslint-config-prettier to ^6.7.0 seemed to fix the issue. |
From the console, errors look like related to indentation. @xgqfrms I'll open a pr to fix this. |
@clarkdo I think it should be a warning, not an error which will be broken the app, that's not too good for the beginner. |
As I mentioned above, I'll open a pr to fix this, there should have no error in this file 😃 |
Adding
to my Now running |
The above issue fixed it for me, too. Thanks. |
For me the issue was the VS Code config, I have had to set: |
@rajeshdh Thanks bro. It's work for me. |
Issue appear only on JavaScript Setup |
Still having the issue |
This solved the error for me! Thanks |
I just run the create-nuxt-app and I checked ESLint and Prettier and right of the bat I have those errors.
Is it normal? Am I missing something?
I searched here, I'm sorry if I missed an answer.
The text was updated successfully, but these errors were encountered: