vue.js 787 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import { defineConfig } from 'eslint/config'
  2. import eslintPluginVue from 'eslint-plugin-vue'
  3. import vueParser from 'vue-eslint-parser'
  4. export default defineConfig(
  5. { ignores: ['**/node_modules', '**/dist', '**/out'] },
  6. eslintPluginVue.configs['flat/recommended'],
  7. {
  8. files: ['**/*.vue'],
  9. languageOptions: {
  10. parser: vueParser,
  11. parserOptions: {
  12. ecmaFeatures: {
  13. jsx: true
  14. },
  15. extraFileExtensions: ['.vue'],
  16. }
  17. }
  18. },
  19. {
  20. files: ['**/*.{ts,mts,tsx,vue}'],
  21. rules: {
  22. 'vue/require-default-prop': 'off',
  23. 'vue/multi-word-component-names': 'off',
  24. 'vue/block-lang': [
  25. 'error',
  26. {
  27. script: {
  28. lang: 'ts'
  29. }
  30. }
  31. ]
  32. }
  33. },
  34. eslintConfigPrettier
  35. )