There are only a handful of violations of the "latedef: nofunc" rule from the jshint in the
mods/public/simulation/components/tests directory. These are fixed in this commit, and
I also migrated the rule to eslint.
The warnings found weren't actual problems in this case see. The closures in which they were
references weren't called until later, so it all worked out.
Fixes the following warnings:
/0ad/binaries/data/mods/public/simulation/components/tests/test_Foundation.js 31:24 error 'pos' was used before it was defined no-use-before-define 32:24 error 'pos' was used before it was defined no-use-before-define /0ad/binaries/data/mods/public/simulation/components/tests/test_Barter.js 43:26 error 'cmpBarter' was used before it was defined no-use-before-define 44:32 error 'cmpBarter' was used before it was defined no-use-before-define