From e8d9a034d075f79bd8e1613d480bd37b24598a27 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 17 Sep 2017 08:42:53 +0300 Subject: Add eslint-plugin-compat. We can check for browser compatibility on lint time now. --- js/.eslintrc.json | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js') diff --git a/js/.eslintrc.json b/js/.eslintrc.json index cc4e58ebd..7316e6f22 100644 --- a/js/.eslintrc.json +++ b/js/.eslintrc.json @@ -7,6 +7,7 @@ "jquery": true }, "extends": "eslint:recommended", + "plugins": ["compat"], "parserOptions": { "ecmaVersion": 8, "sourceType": "module" @@ -17,6 +18,7 @@ "no-extra-parens": "error", "no-prototype-builtins": "error", "no-template-curly-in-string": "error", + "compat/compat": "error", "valid-jsdoc": "error", // Best Practices -- cgit v1.2.3