.eslintrc.js 947 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. module.exports = {
  2. extends: [
  3. 'proste/typescript',
  4. 'proste/vue',
  5. ],
  6. globals: {
  7. suite: true,
  8. test: true,
  9. describe: true,
  10. it: true,
  11. expect: true,
  12. assert: true,
  13. vitest: true,
  14. vi: true,
  15. beforeAll: true,
  16. afterAll: true,
  17. beforeEach: true,
  18. afterEach: true,
  19. },
  20. parser: 'vue-eslint-parser',
  21. parserOptions: {
  22. parser: '@typescript-eslint/parser',
  23. project: './tsconfig.json',
  24. tsconfigRootDir: '.',
  25. warnOnUnsupportedTypeScriptVersion: true,
  26. extraFileExtensions: ['.vue'],
  27. },
  28. rules: {
  29. 'vue/v-on-event-hyphenation': [1, 'never'],
  30. },
  31. overrides: [
  32. {
  33. files: ['cypress/**', 'cypress.config.ts'],
  34. plugins: ['cypress'],
  35. parserOptions: {
  36. project: './cypress/tsconfig.json',
  37. tsconfigRootDir: __dirname,
  38. warnOnUnsupportedTypeScriptVersion: true,
  39. },
  40. env: {
  41. 'cypress/globals': true,
  42. },
  43. },
  44. ],
  45. };