feat: enforce to use function declaration on top-level

This commit is contained in:
Anthony Fu
2023-03-29 15:46:16 +02:00
parent e17d2f8f52
commit 87d26fb63a
7 changed files with 139 additions and 2 deletions

View File

@@ -365,6 +365,7 @@ module.exports = {
// antfu
'antfu/if-newline': 'error',
'antfu/import-dedupe': 'error',
'antfu/top-level-function': 'error',
// 'antfu/prefer-inline-type-import': 'error',
},
}