123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- module.exports = {
- extends: ['soybeanjs/vue'],
- overrides: [
- {
- files: ['./scripts/*.ts'],
- rules: {
- 'no-unused-expressions': 'off'
- }
- },
- {
- files: ['*.vue'],
- rules: {
- 'no-undef': 'off' // use tsc to check the ts code of the vue
- }
- }
- ],
- settings: {
- 'import/core-modules': ['uno.css', '~icons/*', 'virtual:svg-icons-register']
- },
- rules: {
- 'import/order': [
- 'error',
- {
- 'newlines-between': 'never',
- groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
- pathGroups: [
- {
- pattern: 'vue',
- group: 'external',
- position: 'before'
- },
- {
- pattern: 'vue-router',
- group: 'external',
- position: 'before'
- },
- {
- pattern: 'pinia',
- group: 'external',
- position: 'before'
- },
- {
- pattern: 'naive-ui',
- group: 'external',
- position: 'before'
- },
- {
- pattern: '@/constants',
- group: 'internal',
- position: 'before'
- },
- {
- pattern: '@/config',
- group: 'internal',
- position: 'before'
- },
- {
- pattern: '@/settings',
- group: 'internal',
- position: 'before'
- },
- {
- pattern: '@/plugins',
- group: 'internal',
- position: 'before'
- },
- {
- pattern: '@/layouts',
- group: 'internal',
- position: 'before'
- },
- {
- pattern: '@/views',
- group: 'internal',
- position: 'before'
- },
- {
- pattern: '@/components',
- group: 'internal',
- position: 'before'
- },
- {
- pattern: '@/router',
- group: 'internal',
- position: 'before'
- },
- {
- pattern: '@/service',
- group: 'internal',
- position: 'before'
- },
- {
- pattern: '@/store',
- group: 'internal',
- position: 'before'
- },
- {
- pattern: '@/context',
- group: 'internal',
- position: 'before'
- },
- {
- pattern: '@/composables',
- group: 'internal',
- position: 'before'
- },
- {
- pattern: '@/hooks',
- group: 'internal',
- position: 'before'
- },
- {
- pattern: '@/utils',
- group: 'internal',
- position: 'before'
- },
- {
- pattern: '@/assets',
- group: 'internal',
- position: 'before'
- },
- {
- pattern: '@/**',
- group: 'internal',
- position: 'before'
- }
- ],
- pathGroupsExcludedImportTypes: ['vue', 'vue-router', 'pinia', 'naive-ui']
- }
- ]
- }
- };
|