chore: replace no-leading-newline with no-multiple-empty-lines (#82)

This commit is contained in:
Coder Zhao 2022-04-24 22:11:01 +08:00 committed by GitHub
parent 2d9efd4df6
commit 686f285a37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,6 +184,7 @@ module.exports = {
'object-curly-spacing': ['error', 'always'],
'no-return-await': 'off',
'space-before-function-paren': ['error', 'never'],
'no-multiple-empty-lines': ['error', { max: 1, maxBOF: 0, maxEOF: 1 }],
// es6
'no-var': 'error',
@ -292,7 +293,7 @@ module.exports = {
'yml/no-empty-document': 'off',
// antfu
'antfu/no-leading-newline': 'error',
// 'antfu/no-leading-newline': 'error',
'antfu/if-newline': 'error',
// 'antfu/prefer-inline-type-import': 'error',
},