turn off object-curly-newline, it makes const { a, b, c, d } = require(...) ugly

This commit is contained in:
LouisLam
2021-07-30 22:11:14 +08:00
parent 60aa67892d
commit 06377af7e5
2 changed files with 28 additions and 31 deletions

View File

@@ -36,22 +36,7 @@ module.exports = {
}],
"curly": "error",
"object-curly-spacing": ["error", "always"],
"object-curly-newline": ["error", {
"ObjectExpression": {
"minProperties": 1,
},
"ObjectPattern": {
"multiline": true,
"minProperties": 2,
},
"ImportDeclaration": {
"multiline": true,
},
"ExportDeclaration": {
"multiline": true,
//'minProperties': 2,
},
}],
"object-curly-newline": "off",
"object-property-newline": "error",
"comma-spacing": "error",
"brace-style": "error",