0.0.1 • Published 11 months ago

@yobgob/too-many-hooks v0.0.1

Weekly downloads
-
License
-
Repository
github
Last release
11 months ago

too-many-hooks

This directory contains a Vite app which builds to the too-many-hooks library

Building

Install / update dependencies with:

yarn install

Then, build the library with:

yarn build

The built package will output to /dist.

Tooling

  • Build - The application is built using Vite, configured with /vite.config.ts
  • Formatting - Prettier configured with /.prettierrc.cjs
  • Linting - ESLint configured with /.eslintrc.cjs

Scripts

  • build - builds the library to /dist
  • format - formats all files with Prettier
  • lint:code - lints all code in /src with ESLint
  • lint:formatting - checks that all code meets Prettier standards
  • lint:types - checks all types
  • lint - runs all linting commands

Structure

All hooks are contained in the /src directory. Each has its own use<Hook>.ts file which declares and exports the hook and all of its types. These are all subsequently exported from the top-level src/index.ts.

Documentation

All hooks and types have block comments that adhere to JSDoc standards with the goal of adhering to TSDoc in the future. For functions this includes usage examples where possible.

0.0.1

11 months ago