Skip to content

Instantly share code, notes, and snippets.

Configure prettier, eslint, husky (pre commit hook), lint-staged in react + typescript project

Steps to configure prettier, eslint, husky (pre commit hook), lint-staged in react + typescript project created using create-react-app. This is opinionated configuration with airbnb's style guide as the base style guide.

Step 1 :: Setup prettier

1.1) Install prettier as dev dependency.

npm install --save-dev --save-exact prettier
@Liopun
Liopun / form-next-ts-rhf-zod-demo.tsx
Created December 20, 2022 21:30 — forked from pom421/form-next-ts-rhf-zod-demo.tsx
Form with React Hook form and zod rules (Next.js page example)
// try it : https://codesandbox.io/s/sample-next-ts-rhf-zod-9ieev
import React from "react"
import { useForm } from "react-hook-form"
import { zodResolver } from "@hookform/resolvers/zod"
import { z } from "zod"
/* ---------- Some UI components ----------*/
@Liopun
Liopun / gomock.md
Created November 23, 2022 12:42 — forked from thiagozs/gomock.md
Tutorial gomock

08/16/17 by  Sergey Grebenshchikov

No Comments

This is a quick tutorial on how to test code using the GoMock mocking library and the standard library testing package testing.

GoMock is a mock framework for Go. It enjoys a somewhat official status as part of the github.com/golang organization, integrates well with the built-in testing package, and provides a flexible expectation API.

@Liopun
Liopun / cloudSettings
Last active September 2, 2020 06:14
cloudSettings
{"lastUpload":"2020-09-02T06:14:03.365Z","extensionVersion":"v3.4.3"}