Skip to content

Commit 753504b

Browse files
authored
Fix warnings and enable --warn-error in CI (#1136)
1 parent ed71859 commit 753504b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ jobs:
1010
node-version-file: ".node-version"
1111
cache: npm
1212
- run: npm ci
13-
- run: npm run res:build
13+
- run: npm run res:build -- --warn-error +3+8+11+12+26+27+31+32+33+34+35+39+44+45+110
1414
- run: npm test
1515
- run: npm run ci:format

src/layouts/ApiLayout.res

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ let make = (
7474

7575
let (isSidebarOpen, setSidebarOpen) = React.useState(_ => false)
7676

77-
let (isScrollLock, setScrollLock) = ScrollLockContext.useScrollLock()
78-
7977
let toggleSidebar = () => {
8078
setSidebarOpen(prev => !prev)
8179
}

0 commit comments

Comments
 (0)