module.exports = {
  env: {
    browser: true,
    es2021: true,
    node: true,
  },
  extends: [
    "plugin:vue/recommended",
    "standard",
    "@vue/prettier",
    "eslint:recommended",
  ],
  overrides: [
    {
      env: {
        node: true,
      },
      files: [".eslintrc.{js,cjs}"],
      parserOptions: {
        sourceType: "script",
      },
    },
  ],
  parserOptions: {
    ecmaVersion: "latest",
    sourceType: "module",
  },
  plugins: ["vue"],
  rules: {
    "no-console": "warn",
    "vue/multi-word-component-names": "off",
    "vue/no-v-html": "off",
    "vue/require-default-prop": "off",
    camelcase: "off",
    eqeqeq: "error",
    "vue/no-template-shadow": "error",
    "vue/attribute-hyphenation": "error",
    "vue/html-end-tags": "error",
    "vue/eqeqeq": "error",
    "vue/component-name-in-template-casing": ["error", "kebab-case"],
    "vue/enforce-style-attribute": ["error"],
    "no-unused-vars": [
      "error",
      { vars: "all", args: "after-used", ignoreRestSiblings: false },
    ],
    "linebreak-style": ["off", "windows"],
  },
  globals: {
    plus: "readonly",
    uni: "readonly",
  },
};
