diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-08 20:36:57 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-08 20:36:57 +0200 |
commit | dea34503ef61fe8f2600d2d9b0edb2eec90ebd1b (patch) | |
tree | bf4a0037dbecb8b9b00413c59f1af2b434d561e6 /.eslintrc.json | |
parent | 0109381a4f5a513a23258130bca06d40fcbc8ea9 (diff) | |
download | Vencord-dea34503ef61fe8f2600d2d9b0edb2eec90ebd1b.tar.gz Vencord-dea34503ef61fe8f2600d2d9b0edb2eec90ebd1b.tar.bz2 Vencord-dea34503ef61fe8f2600d2d9b0edb2eec90ebd1b.zip |
Add more eslint rules
Diffstat (limited to '.eslintrc.json')
-rw-r--r-- | .eslintrc.json | 14 |
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 }] } } |