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 = {
|
||||
"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",
|
||||
|
|
Loading…
Reference in New Issue