{"id":644,"hash":"4090f5b9272149d95ae3f8bc26a6e480986870f333dc2aa0f6a9bdc28f723c97","pattern":"Get rid of error: Delete `␍⏎` eslint (prettier/prettier), and allow use double `cr` Visual Studio Code1.56.2 on Windows 10","full_message":"I want to use double ␍ (\"carriage return\"  || \"Enter\" key) to visually separate code-sections,\nand start new chaining form separate line (even if line length less then 80char).\n\nBut  get an error: Delete ␍⏎eslint (prettier/prettier)\n\nmy code snippet:\n\r\n\r\nrouter.param(\"id\", checkId) //middleware to validate id\n`␍`\n`␍`\nrouter.route(\"/\")`␍`\n  .get(getAllTours)`␍`\n  .post(checkBody, createTour)\n\nrouter.route(\"/:id\")`␍`\n  .get(getTour)`␍`\n  .patch(updateTour)`␍`\n  .delete(deleteTour)\n`␍`\n`␍`\nmodule.exports = router\r\n\r\n\r\n\nTried:\n.eslintrc.json\n\r\n\r\n'prettier/prettier': [\n  'error',\n  {\n    'endOfLine': 'auto',\n  }\n]\r\n\r\n\r\n\nAnswer form https://stackoverflow.com/a/53769213/15580822\n\nand also try the same in my config .prettierrc\n\nAll of this did not help. I'm getting the same error continuously...\n\nI do not want to disable prettier completely.\n\nBut setting \"endOfLine\" in .eslintrc.json** (\"off\" - Never automatically format embedded code.)\ncompletely disable warnings from prettier\n\n\r\n\r\n{ \n'endOfLine': 'off',\n}\r\n\r\n\r\n\nMy question:\nwhat it actually does?\nDo I disable prettier completely?\n\nI can not find an answer here or Google...\n\nAny thoughts how to get rid of this error and still use prettier?","ecosystem":"npm","package_name":"visual-studio-code","package_version":null,"solution":"Answer is on the comments above, I had the same issue and after a bit of trial and error it was solved with:\n\nOn my .eslintrc.js\n\nendOfLine: 'off'\n\nAnd the .prettierrc.js\n\nendOfLine: 'auto'\n\nNo more issues on the ESLint output, all works fine.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/68816664/get-rid-of-error-delete-eslint-prettier-prettier-and-allow-use-double","votes":18,"created_at":"2026-04-19T04:51:25.715663+00:00","updated_at":"2026-04-19T04:51:25.715663+00:00"}