@@ -95,7 +95,7 @@ const checkWarnings = async (values: PublicCode) => {
9595} ;
9696
9797const resolver : Resolver < PublicCode | PublicCodeWithDeprecatedFields > = async (
98- values
98+ values ,
9999) => {
100100 console . log ( values ) ;
101101
@@ -164,7 +164,7 @@ export default function Editor() {
164164 useITCountrySpecific ( ) ;
165165 const getNestedValue = (
166166 obj : PublicCodeWithDeprecatedFields ,
167- path : string
167+ path : string ,
168168 ) => {
169169 return path . split ( "." ) . reduce ( ( acc , key ) => ( acc as never ) ?. [ key ] , obj ) ;
170170 } ;
@@ -223,15 +223,15 @@ export default function Editor() {
223223 const { countryExtensionVersion } = it ;
224224 const isCountryExtensionVersionDefined = Boolean ( countryExtensionVersion ) ;
225225 const isDifferentFromSpecificDefinedValue = Boolean (
226- IT_COUNTRY_EXTENSION_VERSION !== countryExtensionVersion
226+ IT_COUNTRY_EXTENSION_VERSION !== countryExtensionVersion ,
227227 ) ;
228228
229229 const countryExtensionVersionVisible =
230230 isCountryExtensionVersionDefined && isDifferentFromSpecificDefinedValue ;
231231
232232 setShowCountryExtensionVersion ( countryExtensionVersionVisible ) ;
233233 } ,
234- [ ]
234+ [ ] ,
235235 ) ;
236236
237237 useFormPersist ( "form-values" , {
@@ -243,7 +243,7 @@ export default function Editor() {
243243 checkPubliccodeYmlVersion ( pc ) ;
244244 checkItCountryExtensionVersion ( pc ) ;
245245 } ,
246- [ setLanguages ]
246+ [ setLanguages ] ,
247247 ) ,
248248 storage : window ?. localStorage , // default window.sessionStorage
249249 exclude : [ ] ,
@@ -266,7 +266,7 @@ export default function Editor() {
266266 setValue ( "maintenance.contacts" , undefined ) ;
267267 }
268268 } ,
269- [ setValue ]
269+ [ setValue ] ,
270270 ) ;
271271
272272 useEffect ( ( ) => {
@@ -290,13 +290,13 @@ export default function Editor() {
290290 {
291291 dismissable : true ,
292292 state : "success" ,
293- }
293+ } ,
294294 ) ;
295295 }
296296 } ,
297297 ( e : FieldErrors < PublicCode > ) => {
298298 const genericErrors = Object . entries ( e ) . filter ( ( [ key ] ) =>
299- key . startsWith ( "GenericError" )
299+ key . startsWith ( "GenericError" ) ,
300300 ) ;
301301
302302 const body = genericErrors . length ? (
@@ -318,7 +318,7 @@ export default function Editor() {
318318 state : "error" ,
319319 } ) ;
320320 console . error ( "Errors:" , e ) ;
321- }
321+ } ,
322322 ) ;
323323
324324 const resetFormHandler = ( ) => {
@@ -332,7 +332,7 @@ export default function Editor() {
332332 } ;
333333
334334 const setFormDataAfterImport = async (
335- fetchData : ( ) => Promise < PublicCode | null >
335+ fetchData : ( ) => Promise < PublicCode | null > ,
336336 ) => {
337337 try {
338338 const publicCode = await fetchData ( ) . then ( ( publicCode ) => {
@@ -361,7 +361,10 @@ export default function Editor() {
361361
362362 const res = await checkWarnings ( publicCode ) ;
363363 setWarnings (
364- Array . from ( res . warnings ) . map ( ( [ key , { message } ] ) => ( { key, message } ) )
364+ Array . from ( res . warnings ) . map ( ( [ key , { message } ] ) => ( {
365+ key,
366+ message,
367+ } ) ) ,
365368 ) ;
366369 } catch ( error : unknown ) {
367370 notify ( "Import error" , ( error as Error ) . message , {
@@ -484,7 +487,7 @@ export default function Editor() {
484487 </ div >
485488 < div >
486489 { isDeprecatedFieldVisible (
487- `description.${ lang } .genericName` as never
490+ `description.${ lang } .genericName` as never ,
488491 ) && (
489492 < span >
490493 < EditorDescriptionInput < "genericName" >
0 commit comments