From 4451ea9e092fe159864b1a385576ebd474b739aa Mon Sep 17 00:00:00 2001 From: Enno Gotthold Date: Mon, 19 Aug 2024 21:15:15 +0200 Subject: [PATCH] XMLRPC-Client: Fix prettier eslint issues --- projects/typescript-xmlrpc/src/lib/date_formatter.ts | 3 ++- projects/typescript-xmlrpc/src/lib/deserializer.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/typescript-xmlrpc/src/lib/date_formatter.ts b/projects/typescript-xmlrpc/src/lib/date_formatter.ts index f951c43b..1a10fd6b 100644 --- a/projects/typescript-xmlrpc/src/lib/date_formatter.ts +++ b/projects/typescript-xmlrpc/src/lib/date_formatter.ts @@ -6,10 +6,11 @@ export class DateFormatter { /** * Regular Expression that dissects ISO 8601 formatted strings into an array of parts. */ - // eslint-disable-next-line max-len + /* eslint-disable max-len */ static ISO8601 = new RegExp( '([0-9]{4})([-]?([0-9]{2}))([-]?([0-9]{2}))(T([0-9]{2})(((:?([0-9]{2}))?((:?([0-9]{2}))?(.([0-9]+))?))?)(Z|([+-]([0-9]{2}(:?([0-9]{2}))?)))?)?', ); + /* eslint-enable max-len */ colons = true; hyphens = false; diff --git a/projects/typescript-xmlrpc/src/lib/deserializer.ts b/projects/typescript-xmlrpc/src/lib/deserializer.ts index 4b79d784..ae1e5bb9 100644 --- a/projects/typescript-xmlrpc/src/lib/deserializer.ts +++ b/projects/typescript-xmlrpc/src/lib/deserializer.ts @@ -236,10 +236,11 @@ function convertValue(element: Element): XmlRpcTypes { case 'array': return convertArray(valueChildren[0]); default: - // eslint-disable-next-line max-len + /* eslint-disable max-len */ throw Error( 'Tag name of the single child of value needs to be i4, int, boolean, string, double, dateTime.iso8607, base64, struct or array!', ); + /* eslint-enable max-len */ } }