diff --git a/.eslintrc.js b/.eslintrc.js index d92e7788f..65493bf62 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -3,7 +3,7 @@ module.exports = { "env": { "browser": true, - "es2017": true, + "es2021": true, }, "extends": ["google"], "overrides": [{ @@ -20,12 +20,13 @@ module.exports = { "php-markup", ], "rules": { + "no-invalid-this": "off", "camelcase": "off", "comma-dangle": "off", "guard-for-in": "off", "max-len": "off", "new-cap": ["error", { - capIsNewExceptions: ["Error", "Warning", "Debug", "Polygon_calcArea", "Play", "Stop"], + capIsNewExceptions: ["Error", "Warning", "Debug", "Polygon_calcArea", "Play", "Stop", "Panzoom"], newIsCapExceptionPattern: "^Asset\.." }], "no-array-constructor": "off",