module.exports = {
  root: true,
  env: {},
  extends: [
    'alloy',
    'alloy/vue',
  ],
  parserOptions: {
    parser: '@babel/eslint-parser',
  },
  ignorePatterns: ["**/WSTimer/timer.js", "public/**"],
  rules: {
    'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
    'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
    "vue/component-tags-order": ["error", {
      "order": ["template", "script", "style"]
    }],
    "vue/multi-word-component-names":"off",
    'vue/no-reserved-component-names': 'off',
    'new-cap': 'off',
    'vue/no-duplicate-attributes': 'off',
    "max-lines-per-function": 'off',
    "complexity": 'off',
    "max-params": 'off',
    "max-depth": ["error", 6],
    "no-param-reassign": [
      "error",
      {
        "props": true,
        "ignorePropertyModificationsFor": [
          "e", // for e.returnvalue
          "ctx", // for Koa routing
          "req", // for Express requests
          "request", // for Express requests
          "res", // for Express responses
          "response", // for Express responses
          "state", // for vuex state
          "item",
          "files"
        ]
      }
    ]
  },
};
