From ac8ff96425179c1f0f933ea088c95ac66c32a67a Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Mon, 5 Aug 2019 13:31:06 +0100 Subject: [PATCH] eslint: Use wikimedia/language/es6 and remove duplicate rules Change-Id: I3c3e8dc763a2f2a8bed50c7d0d06dfde37a64f54 --- .eslintrc.json | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 8d74f6d81..148554ac1 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -2,11 +2,11 @@ "root": true, "extends": [ "wikimedia/client", - "wikimedia/jquery" + "wikimedia/jquery", + "wikimedia/language/es6" ], "parserOptions": { - "sourceType": "module", - "ecmaVersion": "6" + "sourceType": "module" }, "env": { "browser": true, @@ -18,14 +18,7 @@ "OO": "readonly" }, "rules": { - "no-prototype-builtins": 0, - "no-restricted-properties": [2, - { - "object": "$", - "property": "each", - "message": "Please use Array.forEach" - } - ], + "no-prototype-builtins": "off", "valid-jsdoc": ["error", { "requireParamDescription": false, "requireReturnDescription": false, @@ -36,11 +29,7 @@ "String": "string" } }], - "dot-notation": [ 2, { "allowKeywords": true } ], - "no-use-before-define": 0, - "no-var": 2, - "prefer-const": 1, - "prefer-template": 1, - "one-var": 0 + "no-use-before-define": "off", + "template-curly-spacing": "off" } }