From 42dddba96d96ef1eba00969e26714011c93de9c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E6=98=8E=E5=81=A5?= Date: Fri, 16 Dec 2022 22:00:41 +0800 Subject: [PATCH] chore: synchronize config of standardjs (#143) --- packages/basic/index.js | 1 - packages/basic/standard.js | 11 ++--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/basic/index.js b/packages/basic/index.js index 52386f7..f9e4f38 100644 --- a/packages/basic/index.js +++ b/packages/basic/index.js @@ -231,7 +231,6 @@ module.exports = { asyncArrow: 'always', }, ], - 'no-multiple-empty-lines': ['error', { max: 1, maxBOF: 0, maxEOF: 0 }], // es6 'no-var': 'error', diff --git a/packages/basic/standard.js b/packages/basic/standard.js index b97f667..565c1c0 100644 --- a/packages/basic/standard.js +++ b/packages/basic/standard.js @@ -134,7 +134,7 @@ module.exports = { 'no-mixed-spaces-and-tabs': 'error', 'no-multi-spaces': 'error', 'no-multi-str': 'error', - 'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 0 }], + 'no-multiple-empty-lines': ['error', { max: 1, maxBOF: 0, maxEOF: 0 }], 'no-new': 'error', 'no-new-func': 'error', 'no-new-object': 'error', @@ -202,14 +202,7 @@ module.exports = { 'semi': ['error', 'never'], 'semi-spacing': ['error', { before: false, after: true }], 'space-before-blocks': ['error', 'always'], - 'space-before-function-paren': [ - 'error', - { - anonymous: 'always', - named: 'never', - asyncArrow: 'always', - }, - ], + 'space-before-function-paren': ['error', 'always'], 'space-in-parens': ['error', 'never'], 'space-infix-ops': 'error', 'space-unary-ops': ['error', { words: true, nonwords: false }],