eslint.config.mjs 609 B

12345678910111213141516171819202122232425262728293031
  1. import neostandard from 'neostandard'
  2. import pluginVue from 'eslint-plugin-vue'
  3. export default [
  4. {
  5. ignores: [
  6. 'dist/**',
  7. 'node_modules/**',
  8. 'resources/scripts/gen/**'
  9. ]
  10. },
  11. ...neostandard({
  12. env: ['browser'],
  13. noJsx: true
  14. }),
  15. ...pluginVue.configs['flat/recommended'],
  16. {
  17. files: ['**/*.{js,mjs,vue}'],
  18. languageOptions: {
  19. ecmaVersion: 'latest',
  20. sourceType: 'module'
  21. },
  22. rules: {
  23. '@stylistic/no-tabs': 'off',
  24. '@stylistic/no-mixed-spaces-and-tabs': 'off',
  25. 'vue/multi-word-component-names': 'off',
  26. 'vue/require-default-prop': 'off',
  27. 'vue/no-v-html': 'warn'
  28. }
  29. }
  30. ]