X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=.eslintrc.json;h=0c0a7b5d79ad31259c5b7c6257b192e56fcf04d0;hb=8d47f5368785c091e35a65f2c63a5964e5f29d50;hp=c0767517ea6f1d6089a4c70adf900237a9ee88b4;hpb=b53f299af26aa0b14b3cd3cc37ec1126a61cdc62;p=lhc%2Fweb%2Fwiklou.git diff --git a/.eslintrc.json b/.eslintrc.json index c0767517ea..0c0a7b5d79 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,60 +1,17 @@ { - "extends": "wikimedia", - "env": { - "browser": true - }, + "extends": [ + "wikimedia/client", + "wikimedia/jquery" + ], "globals": { "require": false, "module": false, "mw": false, - "$": false, "OO": false }, "rules": { - "no-restricted-properties": [ - 2, - { - "object": "$", - "property": "map", - "message": "Please use Array.prototype.map instead" - }, - { - "object": "$", - "property": "inArray", - "message": "Please use Array.prototype.indexOf instead" - }, - { - "object": "$", - "property": "each", - "message": "Please consider different approaches to $.each, especially when using Array's. You can override this warning if necessary with eslint-disable-next-line." - }, - { - "object": "$", - "property": "isArray", - "message": "Please use Array.isArray instead" - }, - { - "object": "$", - "property": "isFunction", - "message": "Please use typeof (e.g. typeof e === 'function') instead" - }, - { - "object": "$", - "property": "grep", - "message": "Please use Array.prototype.filter instead" - }, - { - "object": "$", - "property": "trim", - "message": "Please use String.prototype.trim instead" - }, - { - "object": "$", - "property": "proxy", - "message": "Please use Function.prototype.bind instead" - } - ], - "dot-notation": 0, - "max-len": 0 + "quote-props": [ "error", "as-needed" ], + "max-len": "off", + "jquery/no-global-selector": "off" } }