]>
git.proxmox.com Git - pve-eslint.git/commitdiff
projects
/
pve-eslint.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3958e25
)
try to improve object-curly-newline
author
Thomas Lamprecht
<t.lamprecht@proxmox.com>
Sat, 6 Jun 2020 12:51:01 +0000
(14:51 +0200)
committer
Thomas Lamprecht
<t.lamprecht@proxmox.com>
Sat, 6 Jun 2020 12:53:28 +0000
(14:53 +0200)
for me consistency on open/close is most important..
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/app.js
patch
|
blob
|
blame
|
history
diff --git
a/src/app.js
b/src/app.js
index 509bfad3e76c794a6f586b219d6c2e65b1e3f093..5530615f06664acd5714063b66a8ad42d40c6145 100644
(file)
--- a/
src/app.js
+++ b/
src/app.js
@@
-209,7
+209,11
@@
const defaultConfig = {
// "no-underscore-dangle": ["warn", { allowAfterThis: true }], // we use it for unused variables, like in rust
"no-unneeded-ternary": "warn",
"no-whitespace-before-property": "warn",
- "object-curly-newline": "warn",
+ "object-curly-newline": ["warn", {
+ "multiline": true,
+ //"minProperties": 2, // FIXME: enable this??
+ "consistent": true,
+ }],
"object-curly-spacing": ["warn", "always"],
"operator-linebreak": ["warn", "after", {
"overrides": {