summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-05-02 06:57:57 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-05-02 06:57:57 +0200
commitc22297a858f6ca292479832ca9b07c737f69e959 (patch)
tree5ed661a5998ac91f309bb27cb5ae52dfb4178cca /.eslintrc.js
parentd8d8616c3288241776ef3a203aaa46362149c2d6 (diff)
downloaduxp-c22297a858f6ca292479832ca9b07c737f69e959.tar.gz
Fix unsafe "instanceof" negations
https://github.com/MoonchildProductions/Pale-Moon/pull/1173
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index a7a8862926..3d3ad2b80a 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -7,6 +7,9 @@ module.exports = {
],
"rules": {
"mozilla/import-globals": "warn",
+
+ // No (!foo in bar) or (!object instanceof Class)
+ "no-unsafe-negation": "error",
},
"env": {
"es6": true