1
0

.eslintrc.js 706 B

1234567891011121314151617181920212223242526272829303132333435
  1. module.exports = {
  2. globals: {
  3. __webpack_nonce__: true,
  4. _: true,
  5. $: true,
  6. dayNames: true,
  7. escapeHTML: true,
  8. firstDay: true,
  9. moment: true,
  10. oc_userconfig: true,
  11. sinon: true,
  12. },
  13. plugins: [
  14. 'cypress',
  15. ],
  16. extends: [
  17. '@nextcloud/eslint-config/typescript',
  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. }