Not my greatest design moment, but putting it in the CompilationEnvironment
is a compromise between creating the handler in the compilation create()
and passing it into all the compilers' constructors.
The largest changes here are:
- enforcing single quotes for strings
- enforcing trailing commas where possible
In addition to those we have enabled several eslint plugins:
- plugin:requirejs/recommended, to enforce some conventions in require statements
- plugin:node/recommended, to enforce correct usage of various node.js APIs
- plugin:unicorn/recommended, which contains a pretty mixed bag of useful rules
This PR attempts to not change code behavior when possible. In cases where fixing
existing code would change semantics, a linting exclusion has been placed in the
code base to silence the error. You can find these by searching for `eslint-disable-next-line`.
Co-authored-by: Austin Morton <austinpmorton@gmail.com>
You can now configure which of the host's environment variables are
passed through to the compilers with compiler explorer property
environmentPassThrough. Defaults to `LD_LIBRARY_PATH`, `HOME` and `PATH`,
as before.
Also upgrades lint to ECMA 2018.
Fixes#502
* Merge both compilerProps functions to general case
* Move compilerProps to lib/properties.js
It's now its own class, which takes a languages object + the ceProps
function to calMove compilerProps to lib/properties.js
* Add compilerProps behvaiour tests
* Add unknown language test
After some suprises about how outdated the node version was compared to
the main project, it became clear we needed to do something.
@jaredwy suggested using the main project as there's now nothing
stopping us from using it after the switch to webpack.
cc @mattgodbolDrop underscore-node in favour of underscore.js
Also changes the way compilation-env works, by only having 1 for
all compilers, instead of 1 for each. This should decrease
memory usage as we now better enforce a maximum cache size.
Library UI got a tiny enchancement, but I'm 0% sure about it so let
me know if this is worse!
Closes#801#605
1. a missed close function from a merge
2. Moving some logging to happen before raven logs, as it doesn't behave very well locally.
3. Updated/removed a few packages