Skip to content
Snippets Groups Projects
Verified Commit 509234bb authored by Jan Loewe's avatar Jan Loewe :speech_balloon:
Browse files

chore(formatting): fix formatting

parent 5e9b2237
No related branches found
No related tags found
No related merge requests found
...@@ -32,10 +32,10 @@ export class DCCDocument { ...@@ -32,10 +32,10 @@ export class DCCDocument {
ignoreComment: true, ignoreComment: true,
trim: true, trim: true,
attributesKey: "_attr", attributesKey: "_attr",
elementNameFn: function(val) { elementNameFn: function (val) {
return val.replace("dcc:", "").replace("si:", ""); return val.replace("dcc:", "").replace("si:", "");
}, },
textFn: function(val) { textFn: function (val) {
return val return val
.split("\n") .split("\n")
.map((x) => x.trim()) .map((x) => x.trim())
...@@ -56,7 +56,7 @@ export class DCCDocument { ...@@ -56,7 +56,7 @@ export class DCCDocument {
ignoreComment: true, ignoreComment: true,
spaces: 2, spaces: 2,
attributesKey: "_attr", attributesKey: "_attr",
elementNameFn: function(val, currentElementObj) { elementNameFn: function (val, currentElementObj) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
const currentElement = <any>currentElementObj; const currentElement = <any>currentElementObj;
return `${currentElement?.namespace ? `${currentElement.namespace}:` : ""}${val}`; return `${currentElement?.namespace ? `${currentElement.namespace}:` : ""}${val}`;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment