forked from mirrors/0ad
ba9dcd8146
Fixes 'no-invalid-this' by converting to arrow function as thisArg is only accepted by eslint for inlined function, "free" function might be used in another context. Also fixes 'consistent-return' and 'default-case' adn while at it simplify the logic a bit. Manual fixes needed for: eslint --config full.mjs binaries/data/mods/public/simulation/ai/common-api/gamestate.js Ref: #7812 Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>