.eslintrc.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* eslint-env node */
  2. require("@rushstack/eslint-patch/modern-module-resolution");
  3. module.exports = {
  4. root: true,
  5. extends: [
  6. "plugin:vue/vue3-essential",
  7. "eslint:recommended",
  8. "@vue/eslint-config-typescript",
  9. "@vue/eslint-config-prettier/skip-formatting"
  10. ],
  11. parserOptions: {
  12. ecmaVersion: "latest"
  13. },
  14. rules: {
  15. "@typescript-eslint/ban-ts-ignore": "off",
  16. "@typescript-eslint/explicit-function-return-type": "off",
  17. "@typescript-eslint/no-explicit-any": "off",
  18. "@typescript-eslint/no-var-requires": "off",
  19. "@typescript-eslint/no-empty-function": "off",
  20. "vue/no-mutating-props": "off",
  21. "vue/component-name-in-template-casing": ["error", "kebab-case"],
  22. "vue/component-definition-name-casing": ["error", "kebab-case"],
  23. "no-use-before-define": "off",
  24. "no-unused-vars": "off",
  25. "@typescript-eslint/no-use-before-define": "off",
  26. "@typescript-eslint/ban-ts-comment": "off",
  27. "@typescript-eslint/ban-types": "off",
  28. "@typescript-eslint/no-non-null-assertion": "off",
  29. "@typescript-eslint/explicit-module-boundary-types": "off",
  30. "@typescript-eslint/no-namespace": "off",
  31. "@typescript-eslint/no-unused-vars": "off",
  32. "space-before-function-paren": "off",
  33. "vue/attributes-order": "off",
  34. "vue/one-component-per-file": "off",
  35. "vue/html-closing-bracket-newline": "off",
  36. "vue/max-attributes-per-line": "off",
  37. "vue/multiline-html-element-content-newline": "off",
  38. "vue/multi-word-component-names": "off",
  39. "vue/singleline-html-element-content-newline": "off",
  40. "vue/attribute-hyphenation": "off",
  41. "vue/html-self-closing": "off",
  42. "vue/require-default-prop": "off",
  43. "vue/v-on-event-hyphenation": "off",
  44. "no-self-assign": "off"
  45. }
  46. };