This commit fixes the warnings from ESLint that are about coding style. These are the rules that can be satisfied without changing code semantics or run-time behaviour (and automatically fixable via `eslint --fix …`).
```name=Before,lines=10
/0ad-git/binaries/data/mods/public/simulation/components/UnitAI.js
338:4 warning Method 'Order.WalkToTarget' expected no return value consistent-return
792:5 warning Unnecessary 'else' after 'return' no-else-return
1063:14 warning Missing space before value for key 'GARRISON' key-spacing
1248:5 warning Method 'Timer' expected no return value consistent-return
2042:9 warning '&&' should be placed at the end of the line operator-linebreak
2780:41 warning A space is required after '{' object-curly-spacing
2780:101 warning A space is required before '}' object-curly-spacing
3078:62 warning Missing semicolon semi
3304:1 warning Expected indentation of 2 tabs but found 7 indent
3366:43 warning Unnecessary use of boolean literals in conditional expression no-unneeded-ternary
3482:72 warning A space is required after ',' comma-spacing
3538:38 warning A space is required after '{' object-curly-spacing
3538:76 warning A space is required before '}' object-curly-spacing
3625:1 warning Expected space or tab after '//' in comment spaced-comment
3796:33 warning A space is required after '{' object-curly-spacing
3796:60 warning A space is required before '}' object-curly-spacing
3940:19 warning 'type' is already declared in the upper scope no-shadow
4038:36 warning A space is required after '{' object-curly-spacing
4038:88 warning A space is required before '}' object-curly-spacing
4083:36 warning A space is required after '{' object-curly-spacing
4083:80 warning A space is required before '}' object-curly-spacing
4114:36 warning A space is required after '{' object-curly-spacing
4114:68 warning A space is required before '}' object-curly-spacing
4119:36 warning A space is required after '{' object-curly-spacing
4119:80 warning A space is required before '}' object-curly-spacing
4124:36 warning A space is required after '{' object-curly-spacing
4124:92 warning A space is required before '}' object-curly-spacing
4130:37 warning A space is required after '{' object-curly-spacing
4130:75 warning A space is required before '}' object-curly-spacing
4132:37 warning A space is required after '{' object-curly-spacing
4132:79 warning A space is required before '}' object-curly-spacing
4137:36 warning A space is required after '{' object-curly-spacing
4137:81 warning A space is required before '}' object-curly-spacing
4140:1 warning Expected space or tab after '//' in comment spaced-comment
4790:25 warning 'target' is already declared in the upper scope no-shadow
4805:25 warning 'target' is already declared in the upper scope no-shadow
4807:5 warning '&&' should be placed at the end of the line operator-linebreak
4808:5 warning '&&' should be placed at the end of the line operator-linebreak
4851:22 warning 'ent' is already declared in the upper scope no-shadow
4871:18 warning Multiple spaces found before 'Engine' no-multi-spaces
4874:39 warning 'type' is already declared in the upper scope no-shadow
4875:1 warning Expected indentation of 3 tabs but found 4 indent
4913:18 warning Multiple spaces found before 'Engine' no-multi-spaces
4926:1 warning Expected space or tab after '//' in comment spaced-comment
5083:4 warning Unnecessary 'else' after 'return' no-else-return
5424:36 warning Trailing spaces not allowed no-trailing-spaces
5706:9 warning '&&' should be placed at the end of the line operator-linebreak
5709:9 warning '&&' should be placed at the end of the line operator-linebreak
5732:7 warning '&&' should be placed at the end of the line operator-linebreak
5735:7 warning '&&' should be placed at the end of the line operator-linebreak
5877:22 warning A space is required after '{' object-curly-spacing
5877:37 warning A space is required before '}' object-curly-spacing
5904:1 warning Expected space or tab after '//' in comment spaced-comment
5923:2 warning Missing semicolon semi
6121:1 warning Expected space or tab after '//' in comment spaced-comment
6127:5 warning '&&' should be placed at the end of the line operator-linebreak
6130:1 warning Expected space or tab after '//' in comment spaced-comment
```
```name=After,lines=10
✖ 7 problems (0 errors, 7 warnings)
/0ad-git/binaries/data/mods/public/simulation/components/UnitAI.js
338:4 warning Method 'Order.WalkToTarget' expected no return value consistent-return
1259:5 warning Method 'Timer' expected no return value consistent-return
3960:19 warning 'type' is already declared in the upper scope no-shadow
4810:25 warning 'target' is already declared in the upper scope no-shadow
4825:25 warning 'target' is already declared in the upper scope no-shadow
4871:22 warning 'ent' is already declared in the upper scope no-shadow
4894:39 warning 'type' is already declared in the upper scope no-shadow
```
The remaining warnings require changes to lint config and/or (minor) code semantics to satisfy, which carries more risk, and needs more careful testing, which I'll do in a separate commit for reviewer convenience.