Skip to content

Commit 0f8789c

Browse files
committed
lint: Build project in lint job to check imports
1 parent 25618d2 commit 0f8789c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"header/header": [2, ".header.js"],
2525
"import/first": "error",
2626
"import/newline-after-import": "error",
27+
"import/no-unresolved": "warn",
2728
"import/order": [
2829
"error",
2930
{

.github/workflows/run-all-tests.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
sudo apt-get install clang-tidy-16
2727
sudo rm -f /usr/bin/clang-tidy
2828
sudo ln -s /usr/bin/clang-tidy-16 /usr/bin/clang-tidy
29+
- name: build project
30+
# Build project so that imports can be checked during linting
31+
run: npm run build
2932
- name: build fuzzer
3033
# Build the native addon so that CMake generates compile_commands.json that is needed by clang-tidy
3134
run: npm run build [email protected]/fuzzer

0 commit comments

Comments
 (0)