feat(basic): consider comments for newline-after-import (#164)

This commit is contained in:
曾明健 2023-04-10 19:57:57 +08:00 committed by GitHub
parent 5240f68454
commit ebb96c422e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,7 +207,7 @@ module.exports = {
'import/no-mutable-exports': 'error', 'import/no-mutable-exports': 'error',
'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 }], 'import/newline-after-import': ['error', { count: 1, considerComments: true }],
// Common // Common
'semi': ['error', 'never'], 'semi': ['error', 'never'],