module.exports = { root: true, env: { browser: true, es2021: true, node: true, }, extends: ["plugin:vue/essential", "standard", "prettier"], globals: {}, parserOptions: { ecmaVersion: "latest", sourceType: "module", }, plugins: ["vue"], rules: { semi: ["error", "always"], "no-prototype-builtins": "off", camelcase: "off", "no-unused-vars": "off", "no-useless-catch": "warn", "dot-notation": "warn", // 使用 === 替代 ==, allow-null允许null和undefined== eqeqeq: ["off", "ignore"], "array-callback-return": "off", "prefer-promise-reject-errors": "off", "no-async-promise-executor": "off", "no-throw-literal": ["off", "never"], "new-cap": "off", "space-before-function-paren": ["off", "ignore"], "no-void": "off", "vue/no-computed-properties-in-data": "error", "vue/multi-word-component-names": "off", "vue/no-mutating-props": "off", "vue/no-unused-components": "off", }, };