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

Fixed linting errors caused by accessing '@env' module in certain files #264

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

RupertJonesSA
Copy link
Contributor

@RupertJonesSA RupertJonesSA commented Sep 10, 2024

Fix #257
I noticed this error in the ./client/app/configs/firebaseConfig.ts and ./client/app/contexts/LocationContext.tsx files.

The fix involved modifying the tsconfig.json, .eslintrc.js, and babel.config.js files to permit the inclusion of the env.d.ts file and @env module (a typo in the babel.config.js file also contributed to the error). Additionally, the environment file was moved to the root directory of the client folder from its previous location in ./client/app/types.

However, I cannot say that the fix is fully proofed as I use an eslint-lsp plugin incorporated with my neovim configuration; the solution's results may vary depending on the linter being used. Other developers can only test the success using their own IDEs or text editors.

@AlexanderWangY
Copy link
Collaborator

Also fixes #252

I will check this today

@AlexanderWangY AlexanderWangY linked an issue Sep 10, 2024 that may be closed by this pull request
client/app/types/env.d.ts Show resolved Hide resolved
client/env.d.ts Show resolved Hide resolved
Copy link
Collaborator

@AlexanderWangY AlexanderWangY left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@AlexanderWangY AlexanderWangY merged commit da459fc into ufosc:main Sep 12, 2024
3 checks passed
h1divp pushed a commit to KOrtizLedezma/OSC-Proximity-Chat-App that referenced this pull request Sep 14, 2024
…es (ufosc#264)

* fixed env linting errors

* removed unused env variables from @env
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.

Fix frontend ENV issues Fix Github automated testing issue
2 participants