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>
* Disable WINE on WSL
When Compiler Explorer runs from within WSL, it does not need WINE in
order to call Windows executables.
* Fix process working directories on WSL
This ensures that all working directories, when running the
compiler, are WSL compatible.
* Add test to check correct working directory on WSL
* setupOnError
* setupStream
These checks prevent the following error in the output window:
"Internal Compiler Explorer error: TypeError: Cannot read property
'on' of undefined"
This commit adds support for hosting on windows, as well as better
support for the Visual C++ compiler. Specific interesting changes are:
- switch from /FAsc to /FA
- order functions in file order
- support demangling win32-style identifiers with undname
- clang++ and vc++ on win32 host are both supported
Add another environment setting of winTmp that maps automatically to the
Windows %TEMP% directory. Duplicate code that deals with the tmpDir for
each so that we only run Windows-volume processes on the Windows volume.
Preserve the ability of the user to specify a tmpDir with --tmpDir=foo.