Update eslint setting to ecma2021 which is the latest my installed eslint supports. All this in unnamed functions which we do a lot of jquery.each()

pull/3987/head
Isaac Connor 2024-05-08 13:47:30 -04:00
parent e599d1f032
commit 004f5e7543
1 changed files with 3 additions and 2 deletions

View File

@ -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",