1
0

.eslintrc.js 599 B

12345678910111213141516171819202122232425262728
  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. },
  12. extends: ['@nextcloud'],
  13. rules: {
  14. 'no-tabs': 'warn',
  15. // TODO: make sure we fix this as this is bad vue coding style.
  16. // Use proper sync modifier
  17. 'vue/no-mutating-props': 'warn',
  18. 'vue/custom-event-name-casing': ['error', 'kebab-case', {
  19. // allows custom xxxx:xxx events formats
  20. ignores: ['/^[a-z]+(?:-[a-z]+)*:[a-z]+(?:-[a-z]+)*$/u'],
  21. }],
  22. },
  23. settings: {
  24. jsdoc: {
  25. mode: 'typescript',
  26. },
  27. },
  28. }