@@ -25,7 +25,7 @@ const apiDocumentationParser = (session: Session) => async () => {
2525 } ,
2626 } ) ;
2727 } catch ( result ) {
28- // @ts -ignore
28+ // @ts -expect-error Ignore Eslint error
2929 const { api, response, status } = result ;
3030 if ( status !== 401 || ! response ) {
3131 throw result ;
@@ -46,7 +46,7 @@ const AdminAdapter = ({
4646 session : Session ;
4747 children ?: React . ReactNode | undefined ;
4848} ) => {
49- // @ts -ignore
49+ // @ts -expect-error Ignore Eslint error
5050 const dataProvider = useRef < DataProvider > ( ) ;
5151 const { docType } = useContext ( DocContext ) ;
5252
@@ -66,7 +66,7 @@ const AdminAdapter = ({
6666 < HydraAdmin
6767 requireAuth
6868 authProvider = { authProvider }
69- // @ts -ignore
69+ // @ts -expect-error Ignore Eslint error
7070 dataProvider = { dataProvider . current }
7171 entrypoint = { window . origin }
7272 i18nProvider = { i18nProvider }
@@ -78,7 +78,7 @@ const AdminAdapter = ({
7878 < OpenApiAdmin
7979 requireAuth
8080 authProvider = { authProvider }
81- // @ts -ignore
81+ // @ts -expect-error Ignore Eslint error
8282 dataProvider = { dataProvider . current }
8383 entrypoint = { window . origin }
8484 docEntrypoint = { `${ window . origin } /docs.json` }
@@ -115,14 +115,14 @@ const AdminWithOIDC = () => {
115115 return < SyncLoader size = { 8 } color = "#46B6BF" /> ;
116116 }
117117
118- // @ts -ignore
118+ // @ts -expect-error Ignore Eslint error
119119 if ( ! session || session ?. error === "RefreshAccessTokenError" ) {
120120 ( async ( ) => await signIn ( "keycloak" ) ) ( ) ;
121121
122122 return ;
123123 }
124124
125- // @ts -ignore
125+ // @ts -expect-error Ignore Eslint error
126126 return < AdminWithContext session = { session } /> ;
127127} ;
128128
@@ -132,7 +132,7 @@ const Admin = () => (
132132 < title > API Platform Admin</ title >
133133 </ Head >
134134
135- { /*@ts -ignore */ }
135+ { /*@ts -expect-error Ignore Eslint error */ }
136136 < AdminWithOIDC />
137137 </ >
138138) ;
0 commit comments