How to get rid of Delete `··` (prettier/prettier) errors in a Vue JS project

I am trying to get rid of the error in relation to @vue/prettier. I have tried a few things, but it seems to throw up even more errors.

My .eslintrc.js is as follows:

module.exports = {
  root: true,
  env: {
    node: true
  },
  extends: ["plugin:vue/essential", "@vue/prettier"],
  rules: {
    "no-console": process.env.NODE_ENV === "production" ? "error" : "off",
    "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
  },
  parserOptions: {
    parser: "babel-eslint"
  }
};

I tried "endOfLine":"auto" within the rules part but this then cause more and also 'prettier/prettier': ['error', {endOfLine: 'auto'}]

1 thought on “How to get rid of Delete `··` (prettier/prettier) errors in a Vue JS project”

  1. If you don’t care about line endings, just disable the option by setting endOfLine to off:

    // .eslintrc.js
    module.exports = {
      rules: {
        "prettier/prettier": ["error", { endOfLine: "off" }],
      },
    };
    
    Reply

Leave a Comment