.eslintrc.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. module.exports = {
  2. root: true,
  3. env: {
  4. browser: true,
  5. node: true,
  6. es6: true,
  7. 'vue/setup-compiler-macros': true
  8. },
  9. parser: 'vue-eslint-parser',
  10. extends: ['plugin:vue/vue3-recommended', 'eslint:recommended', 'plugin:prettier/recommended'],
  11. parserOptions: {
  12. ecmaVersion: 2020,
  13. sourceType: 'module',
  14. jsxPragma: 'React',
  15. ecmaFeatures: {
  16. jsx: true
  17. }
  18. },
  19. rules: {
  20. 'no-unused-vars': 'off',
  21. 'no-undef': 'off',
  22. 'vue/script-setup-uses-vars': 'error',
  23. 'vue/custom-event-name-casing': 'off',
  24. 'no-use-before-define': 'off',
  25. 'space-before-function-paren': 'off',
  26. 'vue/attributes-order': 'off',
  27. 'vue/one-component-per-file': 'off',
  28. 'vue/html-closing-bracket-newline': 'off',
  29. 'vue/max-attributes-per-line': 'off',
  30. 'vue/multiline-html-element-content-newline': 'off',
  31. 'vue/singleline-html-element-content-newline': 'off',
  32. 'vue/attribute-hyphenation': 'off',
  33. 'vue/require-default-prop': 'off',
  34. 'vue/html-self-closing': 'off',
  35. 'vue/v-on-event-hyphenation': 'off',
  36. 'vue/multi-word-component-names': 'off',
  37. 'prettier/prettier': ['error', { endOfLine: 'auto' }]
  38. }
  39. }