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 = { module.exports = {
"env": { "env": {
"browser": true, "browser": true,
"es2017": true, "es2021": true,
}, },
"extends": ["google"], "extends": ["google"],
"overrides": [{ "overrides": [{
@ -20,12 +20,13 @@ module.exports = {
"php-markup", "php-markup",
], ],
"rules": { "rules": {
"no-invalid-this": "off",
"camelcase": "off", "camelcase": "off",
"comma-dangle": "off", "comma-dangle": "off",
"guard-for-in": "off", "guard-for-in": "off",
"max-len": "off", "max-len": "off",
"new-cap": ["error", { "new-cap": ["error", {
capIsNewExceptions: ["Error", "Warning", "Debug", "Polygon_calcArea", "Play", "Stop"], capIsNewExceptions: ["Error", "Warning", "Debug", "Polygon_calcArea", "Play", "Stop", "Panzoom"],
newIsCapExceptionPattern: "^Asset\.." newIsCapExceptionPattern: "^Asset\.."
}], }],
"no-array-constructor": "off", "no-array-constructor": "off",