eslint.config.js 579 B

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