elie222 / inbox-zero

Open source email app to reach inbox zero fast.
https://www.getinboxzero.com
GNU Affero General Public License v3.0
2.33k stars 229 forks source link

Feat(web): Add ESlint rule to prevent use of 'process.env' within the source code. #23

Closed sharma-shanu closed 9 months ago

sharma-shanu commented 9 months ago

Since we are using 't3-env' to support typesafe environment variables across the web app.

This PR adds an ESlint rule in the apps/web project to avoid the direct access of environment variables in the source code.

During Development: Screenshot 2023-11-27 at 5 09 09 AM

After npm run lint:

Screenshot 2023-11-27 at 5 10 21 AM

vercel[bot] commented 9 months ago

Someone is attempting to deploy a commit to the Inbox Zero Team on Vercel.

A member of the Team first needs to authorize it.

elie222 commented 9 months ago

Nice 😄