mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 09:28:12 +08:00
turn off object-curly-newline, it makes const { a, b, c, d } = require(...) ugly
This commit is contained in:
17
.eslintrc.js
17
.eslintrc.js
@@ -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",
|
||||
|
Reference in New Issue
Block a user