fix: space-before-function-paren allows space in anonymous and asyncArrow function. (#84)
This commit is contained in:
parent
686f285a37
commit
17670e8e38
@ -183,7 +183,14 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
'object-curly-spacing': ['error', 'always'],
|
'object-curly-spacing': ['error', 'always'],
|
||||||
'no-return-await': 'off',
|
'no-return-await': 'off',
|
||||||
'space-before-function-paren': ['error', 'never'],
|
'space-before-function-paren': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
'anonymous': 'always',
|
||||||
|
'named': 'never',
|
||||||
|
'asyncArrow': 'always'
|
||||||
|
}
|
||||||
|
],
|
||||||
'no-multiple-empty-lines': ['error', { max: 1, maxBOF: 0, maxEOF: 1 }],
|
'no-multiple-empty-lines': ['error', { max: 1, maxBOF: 0, maxEOF: 1 }],
|
||||||
|
|
||||||
// es6
|
// es6
|
||||||
|
@ -202,7 +202,14 @@ 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': ['error', 'always'],
|
'space-before-function-paren': [
|
||||||
|
'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 }],
|
||||||
|
Loading…
Reference in New Issue
Block a user