build(projects): 配置优化

This commit is contained in:
Soybean
2022-06-04 11:19:32 +08:00
parent de09f82586
commit fd78791229
6 changed files with 147 additions and 148 deletions

View File

@ -66,7 +66,7 @@ module.exports = {
tsx: 'never'
}
],
'import/no-extraneous-dependencies': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true, peerDependencies: true }],
'import/order': [
'error',
{
@ -182,7 +182,7 @@ module.exports = {
pathGroupsExcludedImportTypes: ['vue', 'vue-router', 'vuex', 'pinia', 'naive-ui']
}
],
'import/no-unresolved': 'off',
'import/no-unresolved': ['error', { ignore: ['uno.css', '~icons/*'] }],
'import/prefer-default-export': 'off',
'max-classes-per-file': 'off',
'no-param-reassign': [
@ -201,7 +201,6 @@ module.exports = {
ignores: ['index']
}
],
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-empty-interface': [
'error',
{