feat(basic): ban self import (#213)

This commit is contained in:
曾明健 2023-07-05 17:50:02 +08:00 committed by GitHub
parent 4edff9cd15
commit 2ed8536b85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,6 +215,7 @@ module.exports = {
'import/no-unresolved': 'off', 'import/no-unresolved': 'off',
'import/no-absolute-path': 'off', 'import/no-absolute-path': 'off',
'import/newline-after-import': ['error', { count: 1, considerComments: true }], 'import/newline-after-import': ['error', { count: 1, considerComments: true }],
'import/no-self-import': 'error',
// Common // Common
'semi': ['error', 'never'], 'semi': ['error', 'never'],