summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-01-17 16:59:30 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-01-17 16:59:30 +0100
commit63c86fedeb23161c81375cc159f38604e7d9fc5c (patch)
treec808976eb3553d35573bcd8ae96ed961efb2165e
parent87d47b7a3d4e3ef6ade11901a05febe3d16b41fc (diff)
.eslintrc.json: Add even more code style rules
-rw-r--r--.eslintrc.json18
1 files changed, 17 insertions, 1 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 472f568561..d4b1646280 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -5,14 +5,30 @@
"sourceType": "script"
},
"rules": {
+ "array-bracket-spacing" : "warn",
+ "block-spacing": "warn",
+ "brace-style": ["warn", "1tbs"],
"camelcase": "warn",
+ "comma-spacing": "warn",
+ "computed-property-spacing" : ["warn", "never", {
+ "enforceForClassMembers": true
+ }],
"dot-location": "warn",
"eqeqeq": ["error", "always"],
+ "func-style": ["error", "expression", {
+ "allowArrowFunctions": true
+ }],
+ "keyword-spacing": "warn",
+ "linebreak-style": ["warn", "unix"],
"no-unused-vars": ["error", {
"argsIgnorePattern": "^_"
}],
+ "object-curly-spacing" : "warn",
"quotes": ["warn", "double"],
- "require-atomic-updates": "error"
+ "require-atomic-updates": "error",
+ "semi": "warn",
+ "semi-spacing": "warn",
+ "space-in-parens": "warn"
},
"globals": {
"console": "writable",