summaryrefslogtreecommitdiffstats
path: root/.eslintrc.json
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-01-19 20:00:58 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-01-19 20:02:12 +0100
commit14c7242defe4ef0b3791d09d4659a2a88793f31c (patch)
tree31353d5f2095590883922c77312ff42638725954 /.eslintrc.json
parent97b3b9260e739a4f846717c3e4e4eb0a92644098 (diff)
.eslintrc.json: Disallow unneeded ternary ops and spaces before func parens
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json4
1 files changed, 4 insertions, 0 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 2b6014be71..2a31b31203 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -24,6 +24,9 @@
"keyword-spacing": "warn",
"linebreak-style": ["warn", "unix"],
"no-trailing-spaces": "warn",
+ "no-unneeded-ternary": ["warn", {
+ "defaultAssignment": false
+ }],
"no-unused-vars": ["error", {
"argsIgnorePattern": "^_"
}],
@@ -32,6 +35,7 @@
"require-atomic-updates": "error",
"semi": "warn",
"semi-spacing": "warn",
+ "space-before-function-paren": ["warn", "never"],
"space-in-parens": "warn"
},
"globals": {