From 686f285a376a1ecd709a0f14481062621e0952a6 Mon Sep 17 00:00:00 2001 From: Coder Zhao Date: Sun, 24 Apr 2022 22:11:01 +0800 Subject: [PATCH] chore: replace `no-leading-newline` with `no-multiple-empty-lines` (#82) --- packages/basic/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/basic/index.js b/packages/basic/index.js index b70aff9..0c5ab5b 100644 --- a/packages/basic/index.js +++ b/packages/basic/index.js @@ -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', },