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()
parent
e599d1f032
commit
004f5e7543
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue