Pre Merge pull request !68 from puhui999/v-next-dev

pull/68/MERGE
puhui999 2025-04-07 04:49:24 +00:00 committed by Gitee
commit f019ff46f7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 21 additions and 16 deletions

View File

@ -24,28 +24,33 @@ export async function perfectionist(): Promise<Linter.Config[]> {
{
customGroups: {
type: {
'vben-core-type': ['^@vben-core/.+'],
'vben-type': ['^@vben/.+'],
'vue-type': ['^vue$', '^vue-.+', '^@vue/.+'],
'type-adapter': ['^#/adapter/.+'],
'type-api': ['^#/api/.+'],
'type-others': ['.*'],
},
value: {
vben: ['^@vben/.+'],
'vben-core': ['^@vben-core/.+'],
vue: ['^vue$', '^vue-.+', '^@vue/.+'],
'ui-common': ['^@vben/common-ui'],
'ui-antd': ['^ant-design-vue'],
'ui-icons': ['^@vben/icons'],
'local-components': ['^\\./modules/.+\\.vue$', '^\\./components/.+\\.vue$'],
'other-components': ['^#/components/.+'],
'utils-locale': ['^#/locales'],
'vue-core': ['^vue$'],
'utils-adapter': ['^#/adapter/.+'],
'utils-api': ['^#/api/system/.+', '^#/api/.+'],
'utils-functions': ['^#/utils/.+'],
'local-data': ['^\\./data$', '^\\./data.ts$'],
},
},
environment: 'node',
groups: [
['external-type', 'builtin-type', 'type'],
'vue-type',
'vben-type',
'vben-core-type',
['parent-type', 'sibling-type', 'index-type'],
['internal-type'],
['type-adapter', 'type-api', 'type-others', 'external-type', 'builtin-type', 'type', 'parent-type', 'sibling-type', 'index-type', 'internal-type'],
['ui-common', 'ui-antd', 'ui-icons', 'local-components', 'other-components'],
['utils-locale', 'vue-core', 'utils-adapter', 'utils-api', 'utils-functions', 'local-data'],
'builtin',
'vue',
'vben',
'vben-core',
'external',
'internal',
['parent', 'sibling', 'index'],

View File

@ -10,7 +10,7 @@ export default {
},
],
plugins: ['prettier-plugin-tailwindcss'],
printWidth: 80,
printWidth: 120,
proseWrap: 'never',
semi: true,
singleQuote: true,