.eslintrc.js 754 B

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