1

I already try a lot of things and read a topic about prettier/prettier and eslint error when using nuxtjs this is my first time using nuxt but I can't seem to make it work. I try to install npm i eslint-config-prettier but nothing happen, I tried this code too npm run lint -- --fix it fix the code but when I add a new code it still give me the error.

I try this topic but still not solved:

eslint-and-prettier-battle-for-supremacy

add a lint:fix command to package.json

this is the screenshot I got:

This the error message that i got

this is my carousel code:

<template>
  <h1>Test boy</h1>
</template>

<style scoped>
  h1 {
    color: black;
  }
</style>

can someone help me?

6
  • What text editor do you use? Does it show invisible spaces .. ?
    – emare
    Commented Sep 6, 2019 at 18:09
  • Based on the screenshot of the error message, looks like that prettier is pointing to some distinct spaces .. that your editor is not showing them. If you are using Atom try Preferences > Editor > Show Invisibles.
    – emare
    Commented Sep 6, 2019 at 20:26
  • I'm using visual studio code for the editor, @emare as for .. it not showed Commented Sep 9, 2019 at 2:55
  • can you try adding "editor.renderWhitespace": "all" to your vs code config file and see if it shows whitespaces even in other files? more info: stackoverflow.com/questions/30140595/…
    – emare
    Commented Sep 9, 2019 at 3:40
  • I tried it and now i see there is a lot of bullet like .. in my code Commented Sep 9, 2019 at 3:50

0

Browse other questions tagged or ask your own question.