File tree 13 files changed +24
-21
lines changed
13 files changed +24
-21
lines changed Original file line number Diff line number Diff line change @@ -9,17 +9,17 @@ export default {
9
9
// Intentionally empty
10
10
} ,
11
11
} ,
12
- getAnnotations : ( ) => new Promise ( ( resolve , reject ) => reject ( new Error ( ) ) ) ,
13
- getOperatorList : ( ) => new Promise ( ( resolve , reject ) => reject ( new Error ( ) ) ) ,
14
- getStructTree : ( ) => new Promise < void > ( ( resolve , reject ) => reject ( new Error ( ) ) ) ,
15
- getTextContent : ( ) => new Promise ( ( resolve , reject ) => reject ( new Error ( ) ) ) ,
12
+ getAnnotations : ( ) => new Promise ( ( _resolve , reject ) => reject ( new Error ( ) ) ) ,
13
+ getOperatorList : ( ) => new Promise ( ( _resolve , reject ) => reject ( new Error ( ) ) ) ,
14
+ getStructTree : ( ) => new Promise < void > ( ( _resolve , reject ) => reject ( new Error ( ) ) ) ,
15
+ getTextContent : ( ) => new Promise ( ( _resolve , reject ) => reject ( new Error ( ) ) ) ,
16
16
getViewport : ( ) => ( {
17
17
width : 600 ,
18
18
height : 800 ,
19
19
rotation : 0 ,
20
20
} ) ,
21
21
render : ( ) => ( {
22
- promise : new Promise ( ( resolve , reject ) => reject ( new Error ( ) ) ) ,
22
+ promise : new Promise ( ( _resolve , reject ) => reject ( new Error ( ) ) ) ,
23
23
cancel : ( ) => {
24
24
// Intentionally empty
25
25
} ,
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ export default {
5
5
fingerprint : 'a62067476e69734bb8eb60122615dfbf' ,
6
6
numPages : 4 ,
7
7
} ,
8
- getDestination : ( ) => new Promise ( ( resolve , reject ) => reject ( new Error ( ) ) ) ,
9
- getOutline : ( ) => new Promise ( ( resolve , reject ) => reject ( new Error ( ) ) ) ,
10
- getPage : ( ) => new Promise ( ( resolve , reject ) => reject ( new Error ( ) ) ) ,
8
+ getDestination : ( ) => new Promise ( ( _resolve , reject ) => reject ( new Error ( ) ) ) ,
9
+ getOutline : ( ) => new Promise ( ( _resolve , reject ) => reject ( new Error ( ) ) ) ,
10
+ getPage : ( ) => new Promise ( ( _resolve , reject ) => reject ( new Error ( ) ) ) ,
11
11
numPages : 4 ,
12
12
} as unknown as PDFDocumentProxy ;
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ export default {
8
8
numPages : 4 ,
9
9
} ,
10
10
getDestination : ( ) =>
11
- new Promise ( ( resolve , reject ) => reject ( new RenderingCancelledException ( 'Cancelled' ) ) ) ,
11
+ new Promise ( ( _resolve , reject ) => reject ( new RenderingCancelledException ( 'Cancelled' ) ) ) ,
12
12
getOutline : ( ) =>
13
- new Promise ( ( resolve , reject ) => reject ( new RenderingCancelledException ( 'Cancelled' ) ) ) ,
13
+ new Promise ( ( _resolve , reject ) => reject ( new RenderingCancelledException ( 'Cancelled' ) ) ) ,
14
14
getPage : ( ) =>
15
- new Promise ( ( resolve , reject ) => reject ( new RenderingCancelledException ( 'Cancelled' ) ) ) ,
15
+ new Promise ( ( _resolve , reject ) => reject ( new RenderingCancelledException ( 'Cancelled' ) ) ) ,
16
16
numPages : 4 ,
17
17
} as unknown as PDFDocumentProxy ;
Original file line number Diff line number Diff line change 12
12
"complexity" : {
13
13
"noUselessSwitchCase" : " off"
14
14
},
15
+ "correctness" : {
16
+ "noUnusedImports" : " warn" ,
17
+ "noUnusedVariables" : " warn"
18
+ },
15
19
"suspicious" : {
16
20
"noConsoleLog" : " warn"
17
21
}
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ export default class LinkService implements IPDFLinkService {
89
89
return 0 ;
90
90
}
91
91
92
- set rotation ( value ) {
92
+ set rotation ( _value ) {
93
93
// Intentionally empty
94
94
}
95
95
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ export default function StructTreeItem({
20
20
} : StructTreeItemProps ) : React . ReactElement {
21
21
const attributes = useMemo ( ( ) => getAttributes ( node ) , [ node ] ) ;
22
22
23
- // biome-ignore lint/correctness/useExhaustiveDependencies: Looks like a Biome error
24
23
const children = useMemo ( ( ) => {
25
24
if ( ! isStructTreeNode ( node ) ) {
26
25
return null ;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export default function Sample() {
66
66
</ div >
67
67
< div className = "Example__container__document" ref = { setContainerRef } >
68
68
< Document file = { file } onLoadSuccess = { onDocumentLoadSuccess } options = { options } >
69
- { Array . from ( new Array ( numPages ) , ( el , index ) => (
69
+ { Array . from ( new Array ( numPages ) , ( _el , index ) => (
70
70
< Page
71
71
key = { `page_${ index + 1 } ` }
72
72
pageNumber = { index + 1 }
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export default function Sample() {
68
68
</ div >
69
69
< div className = "Example__container__document" ref = { setContainerRef } >
70
70
< Document file = { file } onLoadSuccess = { onDocumentLoadSuccess } options = { options } >
71
- { Array . from ( new Array ( numPages ) , ( el , index ) => (
71
+ { Array . from ( new Array ( numPages ) , ( _el , index ) => (
72
72
< Page
73
73
key = { `page_${ index + 1 } ` }
74
74
pageNumber = { index + 1 }
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export default function Sample() {
64
64
</ div >
65
65
< div className = "Example__container__document" ref = { setContainerRef } >
66
66
< Document file = { file } onLoadSuccess = { onDocumentLoadSuccess } options = { options } >
67
- { Array . from ( new Array ( numPages ) , ( el , index ) => (
67
+ { Array . from ( new Array ( numPages ) , ( _el , index ) => (
68
68
< Page
69
69
key = { `page_${ index + 1 } ` }
70
70
pageNumber = { index + 1 }
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export default function Sample() {
68
68
</ div >
69
69
< div className = "Example__container__document" ref = { setContainerRef } >
70
70
< Document file = { file } onLoadSuccess = { onDocumentLoadSuccess } options = { options } >
71
- { Array . from ( new Array ( numPages ) , ( el , index ) => (
71
+ { Array . from ( new Array ( numPages ) , ( _el , index ) => (
72
72
< Page
73
73
key = { `page_${ index + 1 } ` }
74
74
pageNumber = { index + 1 }
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export default function Sample() {
66
66
</ div >
67
67
< div className = "Example__container__document" ref = { setContainerRef } >
68
68
< Document file = { file } onLoadSuccess = { onDocumentLoadSuccess } options = { options } >
69
- { Array . from ( new Array ( numPages ) , ( el , index ) => (
69
+ { Array . from ( new Array ( numPages ) , ( _el , index ) => (
70
70
< Page
71
71
key = { `page_${ index + 1 } ` }
72
72
pageNumber = { index + 1 }
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export default function Sample() {
66
66
</ div >
67
67
< div className = "Example__container__document" ref = { setContainerRef } >
68
68
< Document file = { file } onLoadSuccess = { onDocumentLoadSuccess } options = { options } >
69
- { Array . from ( new Array ( numPages ) , ( el , index ) => (
69
+ { Array . from ( new Array ( numPages ) , ( _el , index ) => (
70
70
< Page
71
71
key = { `page_${ index + 1 } ` }
72
72
pageNumber = { index + 1 }
Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ export default function Test() {
292
292
< div className = "Test__container__content__document" >
293
293
{ render ? (
294
294
displayAll ? (
295
- Array . from ( new Array ( numPages ) , ( el , index ) => (
295
+ Array . from ( new Array ( numPages ) , ( _el , index ) => (
296
296
< Page
297
297
key = { `page_${ index + 1 } ` }
298
298
{ ...pageProps }
@@ -327,7 +327,7 @@ export default function Test() {
327
327
</ div >
328
328
) }
329
329
< div className = "Test__container__content__thumbnails" >
330
- { Array . from ( new Array ( numPages ) , ( el , index ) => (
330
+ { Array . from ( new Array ( numPages ) , ( _el , index ) => (
331
331
< Thumbnail
332
332
key = { `thumbnail_${ index + 1 } ` }
333
333
className = "custom-classname-thumbnail"
You can’t perform that action at this time.
0 commit comments