|
123456789101112131415161718192021222324252627282930313233 |
- /*
- * @Date: 2022-01-19 10:08:26
- * @LastEditors: JinxChen
- * @LastEditTime: 2022-01-19 10:29:11
- * @FilePath: \alipay-scan-code-front-end\.eslintrc.js
- * @description:
- */
- 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" ? "off" : "off",
- "no-debugger": process.env.NODE_ENV === "production" ? "off" : "off",
- "prettier/prettier": "off", //关闭 prettier 验证
- },
- overrides: [
- {
- files: [
- "**/__tests__/*.{j,t}s?(x)",
- "**/tests/unit/**/*.spec.{j,t}s?(x)",
- ],
- env: {
- jest: true,
- },
- },
- ],
- };
|