S
S
seredaes2020-02-25 18:21:45
Vue.js
seredaes, 2020-02-25 18:21:45

Why is @vue/eslint rendered differently even though the project configs are the same?

In a standard project created via vue create ... - this is how it is displayed
5e553a2f5292e149452780.jpeg

In another project in docker
5e553aa47e60b877489761.png

It would be fine. I insert this into the template:
<{{ }}>
An error is displayed in the project created via vue-cli, but there are no errors in the project that is in the docker. Compiles without errors. How so?

File: .eslintrc.js

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


How to make it display errors beautifully in the second project + why does it react to <{{ }}> in one project and not in the second one?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question