.eslintrc.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. module.exports = {
  2. extends: [
  3. 'proste/typescript.js',
  4. 'plugin:vue/vue3-recommended',
  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/multi-word-component-names': 0,
  30. 'vue/html-self-closing': [
  31. 2, {
  32. html: {
  33. void: 'always',
  34. normal: 'always',
  35. component: 'always',
  36. },
  37. svg: 'always',
  38. math: 'always',
  39. },
  40. ],
  41. 'vue/max-attributes-per-line': 0,
  42. 'vue/singleline-html-element-content-newline': 0,
  43. 'vue/mustache-interpolation-spacing': [1, 'never'],
  44. },
  45. overrides: [
  46. {
  47. files: ['cypress/**', 'cypress.config.ts'],
  48. plugins: ['cypress'],
  49. parserOptions: {
  50. project: './cypress/tsconfig.json',
  51. tsconfigRootDir: __dirname,
  52. warnOnUnsupportedTypeScriptVersion: true,
  53. },
  54. env: {
  55. 'cypress/globals': true,
  56. },
  57. },
  58. ],
  59. };