@accessible/use-conditional-focus

v2.2.0
A React hook that will focus elements conditionally
react react hook use conditional focus useconditionalfocus use focus usefocus react focus hook focus hook focus management and 1 more...

build

npm run build-esm && npm run build-main && npm run build-module && npm run build-types

build-esm

npm run compile -- -d dist/esm --env-name esm --out-file-extension .mjs

build-main

npm run compile -- -d dist/main --env-name main

build-module

npm run compile -- -d dist/module --env-name module

build-types

tsc -p tsconfig.json -d --outDir types --emitDeclarationOnly

check-types

tsc --noEmit -p tsconfig.json

compile

babel src -x .ts,.tsx --ignore "**/*.test.ts","**/*.test.tsx" --delete-dir-on-start

format

prettier --write "**/*.{ts,tsx,js,jsx,md,yml,json,eslintrc,prettierrc}"

lint

eslint . --ext .ts,.tsx

prepublishOnly

npm run lint && npm run test && npm run build && npm run format

test

jest

validate

npm run check-types && npm run lint && npm run test -- --coverage
npm i @accessible/[email protected]

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 5/29/2020

Downloads

Maintainers