question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"error Delete `⏎` prettier/prettier" in .vue files

See original GitHub issue

I get a “Delete prettier/prettier” error within the script tags of my .vue files.

Delete   prettier/prettier

I’m using VS Code with ESLint. When I save the .vue file, it auto-‘fixes’ the file using prettier, only not in the preferred way.

Fixed: Delete   prettier/prettier

There might be something wrong with my .eslintrc.json file, but I’m not sure what it is.

.eslintrc.json

{
  "root": true,
  "parser": "babel-eslint",
  "env": {
    "browser": true
  },
  "extends": [
    "standard",
    "eslint:recommended",
    "prettier"
  ],
  "plugins": [
    "html",
    "prettier"
  ],
  "rules": {
    "prettier/prettier": [
      "error",
      {
        "singleQuote": true
      }
    ]
  }
}

.babelrc

{
  "presets": [
    "env",
    "stage-2"
  ]
}

.vscode/settings.json

{
  "eslint.autoFixOnSave": true,
  "eslint.validate": [
    "javascript",
    {
      "language": "vue",
      "autoFix": true
    }
  ]
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:13
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

32reactions
wahengchangcommented, Jul 13, 2018

it is still existed, there is not way to fix the error 38:2 error Delete prettier/prettier

9reactions
AlexBrohshtutcommented, Aug 9, 2019

Another fix that worked for me is to switch default html formatter to ‘prettier’ (it was prettyhtml for some reason): image

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get rid of Delete `··` (prettier/prettier) errors in a Vue JS ...
I got Some error, "error Delete ␍ prettier/prettier" in multiple lines on my code, then I resolved this issue by follow these steps...
Read more >
Vue.js – Error Delete 'CR' prettier/prettier Visual Studio Code
I'm using Visual Studio Code, so I changed the settings from Preferences > settings > Extensions > Vetur , I changed the Format...
Read more >
How to get rid of Delete `··` (prettier/prettier) errors in a Vue JS ...
I got Some error, "error Delete ␍ prettier/prettier" in multiple lines on my code, ... If you get an error for endOfLine: "off",...
Read more >
Vue 之编译之处理warning Delete ` ` prettier/prettier - CSDN博客
1)如果没有加eslint,提交代码的时候,项目的仓库默认是Linux环境下提交的代码,就会提示将会覆盖换行符为LF。
Read more >
Error Delete `·` prettier/prettier in a fresh Nuxt.js app with ...
Fresh Nuxt.js application with Eslint and Prettier. plugins/axios.js export default function ({ $axios, redirect }) { $axios.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found