.eslintrc.js 988 B

12345678910111213141516171819202122232425262728293031323334
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true,
  5. "vue/setup-compiler-macros": true,
  6. },
  7. extends: ["plugin:vue/vue3-essential", "eslint:recommended", "@vue/typescript/recommended"],
  8. parserOptions: {
  9. ecmaVersion: 2020,
  10. },
  11. rules: {
  12. "prefer-const": "off",
  13. "arrow-parens": 0,
  14. "generator-star-spacing": 0,
  15. "linebreak-style": [0, "warn", "windows"],
  16. "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
  17. "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
  18. "vue/multi-word-component-names": 0,
  19. "@typescript-eslint/no-this-alias": "off",
  20. "@typescript-eslint/ban-ts-comment": "off",
  21. "@typescript-eslint/no-var-requires": "off",
  22. "@typescript-eslint/no-inferrable-types": "off",
  23. "@typescript-eslint/no-empty-function": "off",
  24. "@typescript-eslint/ban-types": [
  25. "warn",
  26. {
  27. extendDefaults: true,
  28. types: {
  29. "{}": false,
  30. },
  31. },
  32. ],
  33. },
  34. };