eslint.config.js 531 B

123456789101112131415161718192021222324
  1. import { defineConfig } from '@soybeanjs/eslint-config';
  2. export default defineConfig(
  3. { vue: true, unocss: true },
  4. {
  5. rules: {
  6. 'vue/multi-word-component-names': [
  7. 'warn',
  8. {
  9. ignores: ['index', 'App', 'Register', '[id]', '[url]']
  10. }
  11. ],
  12. 'vue/component-name-in-template-casing': [
  13. 'warn',
  14. 'PascalCase',
  15. {
  16. registeredComponentsOnly: false,
  17. ignores: ['/^icon-/']
  18. }
  19. ],
  20. 'unocss/order-attributify': 'off'
  21. }
  22. }
  23. );