.eslintrc.cjs 953 B

123456789101112131415161718192021222324252627282930313233343536
  1. module.exports = {
  2. root: true,
  3. env: {
  4. browser: true,
  5. es2021: true,
  6. node: true,
  7. },
  8. parser: "vue-eslint-parser",
  9. parserOptions: {
  10. parser: "@typescript-eslint/parser",
  11. ecmaVersion: "latest",
  12. sourceType: "module",
  13. extraFileExtensions: [".vue"],
  14. },
  15. plugins: ["vue", "@typescript-eslint"],
  16. extends: [
  17. "eslint:recommended",
  18. "plugin:vue/vue3-essential",
  19. "plugin:@typescript-eslint/recommended",
  20. ],
  21. rules: {
  22. "no-constant-condition": "off",
  23. "no-mixed-spaces-and-tabs": "off",
  24. "no-useless-escape": "off",
  25. "no-unused-vars": "off",
  26. "@typescript-eslint/no-unused-vars": [
  27. "warn",
  28. { argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
  29. ],
  30. "@typescript-eslint/ban-types": "off",
  31. "@typescript-eslint/ban-ts-comment": "off",
  32. "@typescript-eslint/no-explicit-any": "off",
  33. "vue/multi-word-component-names": "off",
  34. "vue/no-use-v-if-with-v-for": "off",
  35. },
  36. };