.eslintrc.js 693 B

1234567891011121314151617181920212223242526272829303132333435
  1. module.exports = {
  2. globals: {
  3. __webpack_nonce__: true,
  4. _: true,
  5. $: true,
  6. moment: true,
  7. escapeHTML: true,
  8. oc_userconfig: true,
  9. dayNames: true,
  10. firstDay: true,
  11. 'cypress/globals': true,
  12. },
  13. plugins: [
  14. 'cypress',
  15. ],
  16. extends: [
  17. '@nextcloud',
  18. 'plugin:cypress/recommended',
  19. ],
  20. rules: {
  21. 'no-tabs': 'warn',
  22. // TODO: make sure we fix this as this is bad vue coding style.
  23. // Use proper sync modifier
  24. 'vue/no-mutating-props': 'warn',
  25. 'vue/custom-event-name-casing': ['error', 'kebab-case', {
  26. // allows custom xxxx:xxx events formats
  27. ignores: ['/^[a-z]+(?:-[a-z]+)*:[a-z]+(?:-[a-z]+)*$/u'],
  28. }],
  29. },
  30. settings: {
  31. jsdoc: {
  32. mode: 'typescript',
  33. },
  34. },
  35. }