@yobgob/too-many-hooks
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @yobgob/too-many-hooks

Weekly Downloads

1

Version

0.0.1

License

none

Unpacked Size

59.4 kB

Total Files

16

Last publish

Collaborators

  • dawsonbooth
  • devrip