Skip to content

Instantly share code, notes, and snippets.

View Monte9's full-sized avatar

Monte Thakkar Monte9

View GitHub Profile
@Monte9
Monte9 / eslint-prettier-lint-staged.md
Last active March 25, 2022 21:04
Use ESLint, Prettier & lint-staged w/ Typescript

ESLint + Prettier + lint-staged

If you are working with Javascript or Typescript (React frontend, Node app, Lambda function, etc.) it's really useful to have eslint + prettier setup to ensure a standard code format.

In addition, lint-staged (with husky) will ensure that the code is automagically formatted when a new commit is made on the repo.

ESLint

ESLint is a JavaScript linter that you can use to lint either TypeScript or JavaScript code. It helps you enforce a set of style, formatting, and coding standards for your codebase.

@Monte9
Monte9 / serverless-aws-lambda-instructions.md
Created March 25, 2022 20:09
Use Serverless to deploy AWS Lambdas (Node/Typescript)

Serverless + AWS Lambda + Node/Typescript

Here's the step-by-step guide on how to build & deploy AWS Lambda functions using Serverless library.

This guide was inspired by this tutorial.

I prefer to use Node.js & ideally develop using Typescript. In addition, this has support for running locally, using environment variables through Secrets Manager, etc.

Build Serverless functions