.eslintrc.js 1.0 KB

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