mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 07:04:04 -05:00
- Removes `rootDirs` so all imports will be relative in the frontend - Updates (and unifies) imports to be `../types/...` etc instead of relying on "types" being in the rootDir for the frontend. - Fixes one type that was being picked up from `lib` in the frontend. - Adds a precommit hook to check in future Paves the way to writing _unit_ tests for the frontend for the subset of the frontend code we can import from `node` (which might be a lot of it!)
5 lines
125 B
Plaintext
Executable File
5 lines
125 B
Plaintext
Executable File
make prereqs
|
|
npx lint-staged --verbose
|
|
node ./etc/scripts/check-frontend-imports.js
|
|
python3 ./etc/scripts/util/propscheck.py
|