.eslintrc.js 785 B

12345678910111213141516171819202122232425262728293031323334
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true,
  5. "vue/setup-compiler-macros": true
  6. },
  7. extends: [
  8. "plugin:vue/vue3-essential",
  9. "eslint:recommended",
  10. "@vue/typescript/recommended",
  11. "@vue/prettier"
  12. ],
  13. parserOptions: {
  14. ecmaVersion: 2020,
  15. ecmaFeatures: {
  16. jsx: true
  17. }
  18. },
  19. rules: {
  20. "no-console": "off",
  21. "no-debugger": "off",
  22. "@typescript-eslint/no-this-alias": [
  23. "error",
  24. {
  25. allowDestructuring: false, // Disallow `const { props, state } = this`; true by default
  26. allowedNames: ["that"] // Allow `const self = this`; `[]` by default
  27. }
  28. ],
  29. "@typescript-eslint/no-explicit-any": ["off"],
  30. "@typescript-eslint/no-var-requires": 0,
  31. "vue/multi-word-component-names": "off"
  32. }
  33. };