chore: synchronize config of standardjs (#143)

This commit is contained in:
曾明健 2022-12-16 22:00:41 +08:00 committed by GitHub
parent 5d5b3c338a
commit 42dddba96d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 10 deletions

View File

@ -231,7 +231,6 @@ module.exports = {
asyncArrow: 'always', asyncArrow: 'always',
}, },
], ],
'no-multiple-empty-lines': ['error', { max: 1, maxBOF: 0, maxEOF: 0 }],
// es6 // es6
'no-var': 'error', 'no-var': 'error',

View File

@ -134,7 +134,7 @@ module.exports = {
'no-mixed-spaces-and-tabs': 'error', 'no-mixed-spaces-and-tabs': 'error',
'no-multi-spaces': 'error', 'no-multi-spaces': 'error',
'no-multi-str': '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': 'error',
'no-new-func': 'error', 'no-new-func': 'error',
'no-new-object': 'error', 'no-new-object': 'error',
@ -202,14 +202,7 @@ module.exports = {
'semi': ['error', 'never'], 'semi': ['error', 'never'],
'semi-spacing': ['error', { before: false, after: true }], 'semi-spacing': ['error', { before: false, after: true }],
'space-before-blocks': ['error', 'always'], 'space-before-blocks': ['error', 'always'],
'space-before-function-paren': [ 'space-before-function-paren': ['error', 'always'],
'error',
{
anonymous: 'always',
named: 'never',
asyncArrow: 'always',
},
],
'space-in-parens': ['error', 'never'], 'space-in-parens': ['error', 'never'],
'space-infix-ops': 'error', 'space-infix-ops': 'error',
'space-unary-ops': ['error', { words: true, nonwords: false }], 'space-unary-ops': ['error', { words: true, nonwords: false }],