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

Disallow use of console, alert, and debugger #681

Merged
merged 10 commits into from Mar 27, 2023

Conversation

oo-bldrs
Copy link
Contributor

PR to add ESLint rules that will loudly complain if one attempts to use console.*, alert(), or debugger;.

@aozien In src/Infrastructure/IfcViewerAPIExtended.js, can you confirm whether you want the debug logging of the error to remain, or has the code reached a level of maturity where that line can be removed?

@pablo-mayrgundter In src/Share.jsx, when no repository is set, do we still need that warning/debugging statement or can that be eliminated?

@netlify
Copy link

netlify bot commented Mar 23, 2023

Deploy Preview for bldrs-share ready!

Name Link
🔨 Latest commit 79ef9e3
🔍 Latest deploy log https://app.netlify.com/sites/bldrs-share/deploys/6421c171ad33c50008d66756
😎 Deploy Preview https://deploy-preview-681--bldrs-share.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.

src/Infrastructure/IfcViewerAPIExtended.js Outdated Show resolved Hide resolved
src/Share.jsx Outdated Show resolved Hide resolved
src/WidgetApi/ApiConnection.js Show resolved Hide resolved
@oo-bldrs oo-bldrs merged commit eea7182 into bldrs-ai:main Mar 27, 2023
6 checks passed
@oo-bldrs oo-bldrs deleted the no-print-based-debugging branch March 27, 2023 16:28
oo-bldrs added a commit that referenced this pull request Mar 27, 2023
oo-bldrs added a commit that referenced this pull request Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

None yet

3 participants