aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-10-08 20:36:57 +0200
committerVendicated <vendicated@riseup.net>2022-10-08 20:36:57 +0200
commitdea34503ef61fe8f2600d2d9b0edb2eec90ebd1b (patch)
treebf4a0037dbecb8b9b00413c59f1af2b434d561e6 /.eslintrc.json
parent0109381a4f5a513a23258130bca06d40fcbc8ea9 (diff)
downloadVencord-dea34503ef61fe8f2600d2d9b0edb2eec90ebd1b.tar.gz
Vencord-dea34503ef61fe8f2600d2d9b0edb2eec90ebd1b.tar.bz2
Vencord-dea34503ef61fe8f2600d2d9b0edb2eec90ebd1b.zip
Add more eslint rules
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json14
1 files changed, 13 insertions, 1 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 2d51750..0807154 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -23,6 +23,18 @@
"semi-style": ["error", "last"],
"space-in-parens": ["error", "never"],
"block-spacing": ["error", "always"],
- "object-curly-spacing": ["error", "always"]
+ "object-curly-spacing": ["error", "always"],
+ "eqeqeq": ["error", "always", { "null": "ignore" }],
+ "spaced-comment": ["error", "always"],
+ "yoda": "error",
+ "prefer-destructuring": ["error", { "object": true, "array": false }],
+ "operator-assignment": ["error", "always"],
+ "no-useless-computed-key": "error",
+ "no-unneeded-ternary": ["error", { "defaultAssignment": false }],
+ "no-invalid-regexp": "error",
+ "no-constant-condition": ["error", { "checkLoops": false }],
+ "no-duplicate-imports": "error",
+ "no-extra-semi": "error",
+ "consistent-return": ["error", { "treatUndefinedAsUnspecified": true }]
}
}