Skip to content

Commit

Permalink
Lint: Enforce lint check on PR (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
n3ssi3 authored Jul 24, 2023
1 parent 7f6240f commit 6da8d70
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: ci
on: [push]
on:
push:
branches:
- master
pull_request:

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion src/Datatrans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface GlobalDatatransApi {
*/
export interface DatatransLightboxConfig {
closed?: () => void;
error?: (error: { message: string; detail: string }) => void;
error?: (error: { message: string; detail: string }) => void; // eslint-disable-line no-unused-vars
form?: unknown;
loaded?: () => void;
opened?: () => void;
Expand Down
2 changes: 1 addition & 1 deletion src/Lightbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface LightboxProps {
onLoaded?: () => void
onOpened?: () => void
onCancelled?: () => void
onError?: (error: { message: string; detail: string }) => void
onError?: (error: { message: string; detail: string }) => void // eslint-disable-line no-unused-vars
}

declare let window: Window & {
Expand Down

0 comments on commit 6da8d70

Please sign in to comment.