Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor index.js and shared.js #367

Closed
wants to merge 1 commit into from

Conversation

nele-golem
Copy link

Hallo Ege,
für die Nutzung eures Core packages im Editdor, musste ich noch ein paar Kleinigkeiten in der index.js und shared.js anpassen. Teilweise habe ich Sachen auskommentiert, die nicht benutzt wurden und mir Warnungen angezeigt haben oder Linting Fehler angezeigt haben. Eventuell könnt ihr das mal prüfen, damit wir evtl in Zukunft euer Package so einbauen können.

Viele Grüße
Nele

@netlify
Copy link

netlify bot commented Nov 4, 2022

Deploy Preview for playground-testing ready!

Name Link
🔨 Latest commit 9cb0c0e
🔍 Latest deploy log https://app.netlify.com/sites/playground-testing/deploys/6364fcb4ccb14a00080410ff
😎 Deploy Preview https://deploy-preview-367--playground-testing.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@egekorkan
Copy link
Member

Hi @nele-golem, welche linter hast du benutzt?

@nele-golem
Copy link
Author

@egekorkan Ich habe ES-Lint benutzt

@egekorkan
Copy link
Member

I am getting different results on my PC when I run linting. I will try to identify the root of the difference.

Copy link
Member

@egekorkan egekorkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nele-golem I think that most of the changes are actually not needed, we do use the commented-out functions. Regarding linting, I am preparing this to be automated. Are there other changes in this PR that I am not seeing?

"Status": "pass"
})
return results
// // no security used non defined scheme, passed test
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should not be commented out

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @egekorkan sry for my late response. MeanwhiIe I changed project, but the linter told me, the code will not be reached, so thats why i commended it out. Which node version do you use? Also it would be great to have the Error Messages also in the Response like "report, details, detailComments". But for now Im fine then! For changes or updated in the future please contact Felix again! Thank you

@@ -91,9 +94,11 @@ function tdValidator(tdString, logFunc, { checkDefaults=true, checkJsonLd=true }
}

let ajv = new Ajv({strict: false}) // options can be passed, e.g. {allErrors: true}
ajv = addFormats(ajv) // ajv does not support formats by default anymore

// ajv = addFormats(ajv) // ajv does not support formats by default anymore
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is needed, otherwise warnings are seen like you can see in the current action log

@egekorkan
Copy link
Member

@nele-golem I have created #403 . I will close this PR in this case

@egekorkan egekorkan closed this Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants