aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/.eslintrc.json
diff options
context:
space:
mode:
authorMaximilian Krambach <[email protected]>2018-08-20 13:12:01 +0000
committerMaximilian Krambach <[email protected]>2018-08-20 13:12:01 +0000
commitdd32daad0bb21e3d5567326d0b2e548ff8510431 (patch)
treebbefa811b727f1246fee17a26c9f1c4440609003 /lang/js/.eslintrc.json
parentjs: revert changes to class read/write restriction (diff)
downloadgpgme-dd32daad0bb21e3d5567326d0b2e548ff8510431.tar.gz
gpgme-dd32daad0bb21e3d5567326d0b2e548ff8510431.zip
js: add and apply eslint rules
-- * mainly spacing, see .eslintrc.json for details
Diffstat (limited to '')
-rw-r--r--lang/js/.eslintrc.json19
1 files changed, 18 insertions, 1 deletions
diff --git a/lang/js/.eslintrc.json b/lang/js/.eslintrc.json
index ad82400b..dc3be2e4 100644
--- a/lang/js/.eslintrc.json
+++ b/lang/js/.eslintrc.json
@@ -27,6 +27,23 @@
"no-var": [
"warn"
],
- "max-len": 1
+ "max-len": 1,
+ "default-case": 2,
+ "no-invalid-this": 2,
+ "no-lone-blocks": 1,
+ "no-self-compare": 2,
+ "radix": 2,
+ "no-use-before-define": ["error", {
+ "functions": false,
+ "classes": false,
+ "variables": true
+ }],
+ "no-useless-constructor": 1,
+ "space-before-function-paren": ["error", "always"],
+ "keyword-spacing": 2,
+ "spaced-comment": 1,
+ "space-unary-ops": 2,
+ "object-curly-spacing": ["error", "always"],
+ "array-bracket-spacing": ["error", "never"]
}
} \ No newline at end of file