"error Delete `⏎` prettier/prettier" in .vue files
See original GitHub issueI get a “Delete ⏎
prettier/prettier” error within the script tags of my .vue files.
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.
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:
- Created 6 years ago
- Reactions:13
- Comments:9 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
it is still existed, there is not way to fix the error
38:2 error Delete
⏎prettier/prettier
Another fix that worked for me is to switch default html formatter to ‘prettier’ (it was prettyhtml for some reason):