Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行命令后,出现与项目配置不一样的检测 #5

Open
hello-lucas opened this issue Oct 19, 2020 · 0 comments
Open

运行命令后,出现与项目配置不一样的检测 #5

hello-lucas opened this issue Oct 19, 2020 · 0 comments

Comments

@hello-lucas
Copy link

本项目中使用eslint ,引入prettier插件:

.eslintrc.js配置如下:

module.exports = {
  root: true,

  env: {
    node: true,
  },

  extends: [
    "plugin:vue/essential",
    "plugin:prettier/recommended",
    "eslint:recommended",
  ],

  rules: {
    "no-console": "off",
    "no-debugger": process.env.NODE_ENV == "production" ? "error" : "off",
    "prettier/prettier": "error",
  },

  parserOptions: {
    parser: "babel-eslint",
  },
};

.prettierrc.yml配置如下:

printWidth: 220
tabWidth: 4
singleQuote: true

运行命令后,出现这个情况:

image

请问是否源码中getBaseConfig这个方法出了问题呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant