eslint漂亮无法禁用换行符样式的规则

时间:2018-11-01 09:19:27

标签: eslint prettier

在我的package.json中,我将eslint规则更新为“ linebreak-style”:0,如下所示:

 "eslintConfig": {
    "root": true,
    "env": {
      "node": true
  },
    "rules": {
      "no-console": 0,
      "linebreak-style": 0
   },

但是我仍然收到警告:

    warning: Insert `⏎·············` (prettier/prettier) at src/components/Home/ContactForm.vue:112:44:
      110 |             "Access-Control-Allow-Origin": "*",
      111 |             "Access-Control-Allow-Methods": "GET,POST,DELETE,HEAD,PUT,OPTIONS",
    > 112 |             "Access-Control-Allow-Headers": "Origin, X-Requested-With, Content-Type, Accept",
          |                                            ^
      113 |             Accept: "application/json", "Content-Type": "application/json",
      114 |             Authorization: process.env.VUE_APP_SECRET_KEY
      115 |           }

这是正确的规则吗?默认情况下,似乎要求剪切线超过80个字符...

0 个答案:

没有答案