Skip to content

Commit 6da8d70

Browse files
authored
Lint: Enforce lint check on PR (#30)
1 parent 7f6240f commit 6da8d70

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: ci
2-
on: [push]
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
37

48
jobs:
59
test:

src/Datatrans.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface GlobalDatatransApi {
2222
*/
2323
export interface DatatransLightboxConfig {
2424
closed?: () => void;
25-
error?: (error: { message: string; detail: string }) => void;
25+
error?: (error: { message: string; detail: string }) => void; // eslint-disable-line no-unused-vars
2626
form?: unknown;
2727
loaded?: () => void;
2828
opened?: () => void;

src/Lightbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface LightboxProps {
1212
onLoaded?: () => void
1313
onOpened?: () => void
1414
onCancelled?: () => void
15-
onError?: (error: { message: string; detail: string }) => void
15+
onError?: (error: { message: string; detail: string }) => void // eslint-disable-line no-unused-vars
1616
}
1717

1818
declare let window: Window & {

0 commit comments

Comments
 (0)